|
tgen
|
Pair value. More...

Public Member Functions | |
| value (const std::pair< T, T > &pair) | |
| Creates a pair value from a std::pair. | |
| value (const T &first, const T &second) | |
| Creates a pair value from first and second values. | |
| T | first () const |
| Returns the first element of a pair value. | |
| T | second () const |
| Returns the second element of a pair value. | |
| value & | separator (char sep) |
| Sets separator for printing. | |
| auto | to_std () const |
| Converts the value to a std::pair. | |
| Public Member Functions inherited from tgen::gen_value_base< value > | |
| bool | operator< (const value &rhs) const |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const value &inst) |
| Prints the value to a std::ostream. | |
Pair value.
It can be deterministically operated upon and printed through std::cout.
|
inline |
Creates a pair value from a std::pair.
| pair | The std::pair representing the value. |
|
inline |
Creates a pair value from first and second values.
| first | First element of the pair. |
| second | Second element of the pair. |
|
inline |
Returns the first element of a pair value.
|
inline |
Returns the second element of a pair value.
|
inline |
Sets separator for printing.
O(1).
|
inline |
Converts the value to a std::pair.
|
friend |