Changeset 2f42718 for src/Common


Ignore:
Timestamp:
Feb 22, 2019, 10:43:29 AM (7 years ago)
Author:
tdelisle <tdelisle@…>
Branches:
no_list
Parents:
43e0949
Message:

Parameters and return value of functions are now vectors (and some related clean-up)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/utility.h

    r43e0949 r2f42718  
    497497}
    498498
     499// -----------------------------------------------------------------------------
     500/// Simple ranged-base standard algorithms
     501namespace std {
     502        template< typename range, typename out >
     503        static inline auto move( range & r, out o ) -> decltype(std::move( std::begin(r), std::end(r), o )) {
     504                return std::move( std::begin(r), std::end(r), o );
     505        }
     506
     507        template< typename range, typename out >
     508        static inline auto copy( range & r, out o ) -> decltype(std::copy( std::begin(r), std::end(r), o )) {
     509                return std::copy( std::begin(r), std::end(r), o );
     510        }
     511}
     512
    499513// Local Variables: //
    500514// tab-width: 4 //
Note: See TracChangeset for help on using the changeset viewer.