diff --git a/functional.h b/functional.h index 8e6ba0eb..74c2439e 100644 --- a/functional.h +++ b/functional.h @@ -30,7 +30,7 @@ SOFTWARE. #define __ETL_FUNCTIONAL__ ///\defgroup functional functional -///\ingroup Utilities +///\ingroup utilities ///\defgroup reference_wrapper reference_wrapper ///\ingroup functional @@ -58,16 +58,17 @@ namespace etl return *t; } + reference_wrapper& operator = (T value) + { + *t = value; + return *this; + } + T& get() const { return *t; } - T* get_pointer() const - { - return t; - } - private: T* t;