Skip to content

vector_algorithms.cpp: turn tails #3963

Description

There are some scalar tails extracted in vector_algorithms.cpp,
Whereas some are used multiple times, some are used just one. A few examples:

return _Minmax_tail<_Mode, typename _Traits::_Signed_t, typename _Traits::_Unsigned_t>(
_First, _Last, _Res, _Sign, _Cur_min_val, _Cur_max_val);

return _Find_trivial_tail(_First, _Last, _Val);

return _Find_trivial_unsized_fallback(_First, _Val);

The tail extraction does not serve any purpose in such cases, it only provides an obstacle for debugging of optimized code (as tails are expectedly inlined. so the debugger does not navigate the lines).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSomething can be improvedfixedSomething works now, yay!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions