![]() |
Conquer Chess
Chess and Starcraft combined
|
A copyable read-only value. More...
#include <read_only.h>
Public Member Functions | |
| read_only () | |
| read_only (const T &value) | |
| bool | has_value () const |
| const T & | get_value () const |
| void | operator= (const T &value) |
A copyable read-only value.
Writing a const member variable causes the need to write a custom copy constructor. Using this class instead prevents this.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |