Changeset 154:e4ed7874b57e in rrlib_util


Ignore:
Timestamp:
16.05.2017 00:40:26 (20 months ago)
Author:
Tobias Föhst <foehst@…>
Branch:
17.03
Phase:
public
Rebase:
65666237633863323066303662363036326131306562613038306439623162356638663839656434
Message:

Adds overload to make range directly from e.g. an STL container

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tIteratorRange.h

    r153 r154  
    134134} 
    135135 
     136template <typename TContainer> 
     137tIteratorRange<decltype(std::begin(std::declval<TContainer>()))> MakeRange(const TContainer &container) 
     138{ 
     139  return MakeRange(std::begin(container), std::end(container)); 
     140} 
     141 
    136142//---------------------------------------------------------------------- 
    137143// End of namespace declaration 
Note: See TracChangeset for help on using the changeset viewer.