|
cli11
|
Uniform access to the halves of a container's element. More...
Public Types | |
| using | value_type = typename T::value_type |
| The container's element type. | |
| using | first_type = std::remove_const_t<value_type> |
| The type of the first half. | |
| using | second_type = std::remove_const_t<value_type> |
| The type of the second half. | |
Static Public Member Functions | |
| template<typename Q> | |
| static auto | first (Q &&pair_value) -> decltype(std::forward< Q >(pair_value)) |
| Returns the first half of an element. | |
| template<typename Q> | |
| static auto | second (Q &&pair_value) -> decltype(std::forward< Q >(pair_value)) |
| Returns the second half of an element. | |
Uniform access to the halves of a container's element.
For a map-like container the halves are the key and the value. For any other container both halves are the element itself, so that code handling is_member sets does not need to branch on container shape.
| T | The container to adapt. |
|
inlinestatic |
Returns the first half of an element.
| pair_value | The element. |
|
inlinestatic |
Returns the second half of an element.
| pair_value | The element. |