Opened 7 years ago

#11497 new Feature Requests

std::front and std::back

Reported by: gast128@… Owned by: No-Maintainer
Milestone: To Be Determined Component: utility
Version: Boost 1.57.0 Severity: Optimization
Keywords: Cc:

Description

I needed to get the first and last element in an array. Recently the STL got the free form std::begin and std::end which is good, but wouldn't it be an idea to have std::front (or boost::front) and std::back (boost::back) as well?

See also http://stackoverflow.com/questions/14880172/missing-stdfront-and-stdback

Change History (0)

Note: See TracTickets for help on using tickets.