mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-16 00:46:03 +08:00
Minor changes
This commit is contained in:
parent
e0dd8eae1a
commit
f44cfa026e
13
functional.h
13
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<T>& operator = (T value)
|
||||
{
|
||||
*t = value;
|
||||
return *this;
|
||||
}
|
||||
|
||||
T& get() const
|
||||
{
|
||||
return *t;
|
||||
}
|
||||
|
||||
T* get_pointer() const
|
||||
{
|
||||
return t;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
T* t;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user