Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
Class extending the reference wrapper class from the standard library. Original reason is to allow its use with standard stream aggregation class. More...
#include <functional.hpp>
Public Member Functions | |
reference_wrapper (const reference_wrapper &other)=default | |
reference_wrapper & | operator= (const reference_wrapper &other)=default |
reference_wrapper & | operator= (const T &object) |
auto | operator<=> (const reference_wrapper< T > &other) const |
Specialisation of less than operator for reference_wrapper vector. More... | |
bool | operator== (const reference_wrapper< T > &other) const |
Specialisation of equals operator for reference_wrapper vector. More... | |
Class extending the reference wrapper class from the standard library. Original reason is to allow its use with standard stream aggregation class.
The class mimics the behavior of the reference wrapper from the standatd library.
T | the type of the reference inside the reference wrapper |
|
default |
Copy constructor needed by g++ since it is not inherited.
|
inline |
Specialisation of less than operator for reference_wrapper vector.
other | the second compared value |
|
default |
Copy operator = needed by g++ since it is not inherited.
|
inline |
Overload to allow wrapping object in assignment.
|
inline |
Specialisation of equals operator for reference_wrapper vector.
other | the second compared value |