Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate performance of structured bindings, tie, and naive approach #21

Open
ryanelandt opened this issue May 22, 2023 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@ryanelandt
Copy link
Owner

The naive approach to unpacking the latitude and longitude is:

  const auto lat1r_lon1r = GetLatLonRadians(src);
  const double lat1r = lat1r_lon1r.first;
  const double lon1r = lat1r_lon1r.second;

This solution is less compact than either:

const auto [lat1r, lon1r] = GetLatLonRadians(src);

or

tie(lat1r, lon1r) = GetLatLonRadians(src);

Investigate why.

@ryanelandt ryanelandt added the question Further information is requested label May 22, 2023
@ryanelandt ryanelandt self-assigned this May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant