Changeset 160:aaeedeabee77 in rrlib_util


Ignore:
Timestamp:
15.11.2017 17:26:35 (2 years ago)
Author:
Tobias Föhst <tobias.foehst@…>
Branch:
14.08
Children:
161:694ca5642954, 162:bef5f76f9967, 164:7b47551c117c
Phase:
public
Rebase:
62316336616536393734643934343233663739613563333037306132303964643735613435643630
Message:

Adds operator < to tEnumBasedFlags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tEnumBasedFlags.h

    r159 r160  
    213213  return flags1.Raw() != flags2.Raw(); 
    214214} 
     215template <typename TFlag, typename TStorage = uint> 
     216inline bool operator<(const tEnumBasedFlags<TFlag, TStorage>& flags1, const tEnumBasedFlags<TFlag, TStorage>& flags2) 
     217{ 
     218  return flags1.Raw() < flags2.Raw(); 
     219} 
    215220 
    216221//---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.