10#ifndef MAXMATRIX_SRC_UTILITY_REFERENCE_WRAPPER_H_
11#define MAXMATRIX_SRC_UTILITY_REFERENCE_WRAPPER_H_
56 : pointer_{&object} {}
74 constexpr operator T&()
const {
return *pointer_; }
The attributes of a later standard, as macros, where the compiler has them.
#define MAXMATRIX_NODISCARD
Marks a function whose result must not be dropped: the compiler warns where it is.
Definition MaxMatrixAttributes.h:37
MAXMATRIX_NODISCARD constexpr T & get() const
Returns the object referred to.
Definition reference_wrapper.h:67
constexpr reference_wrapper(T &object)
Makes a reference to object.
Definition reference_wrapper.h:55
T type
Definition reference_wrapper.h:45
reference_wrapper(T &&)=delete
Deleted: a temporary would be gone before the first use.