All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
gears::concepts::ReversibleContainer< T > Struct Template Reference

Checks if a type is a container that can be reversed. More...

Inherits gears::concepts::And< Container< T >, TraitOf< detail::is_reversible, T > >.

Detailed Description

template<typename T>
struct gears::concepts::ReversibleContainer< T >

A Unary concept that checks if a type is a container that can be reversed.

It must meet the Container concept. In addition to that, it must have the following typedefs defined:

  • reverse_iterator
  • const_reverse_iterator

and the following expressions must be valid:

auto a = x.rbegin(); // returns reverse_iterator or const_reverse_iterator
auto b = x.rend(); // returns reverse_iterator or const_reverse_iterator
auto c = x.crbegin(); // returns const_reverse_iterator
auto d = x.crend(); // returns const_reverse_iterator

Where x is an instance of T.

Template Parameters
TType to check

Definition at line 253 of file container.hpp.