#include <stlsoft/properties/field_properties.hpp>
class ClassWithWriteOnlyProp { public: stlsoft::field_property_set<int, int, ClassWithWriteOnlyProp> prop2; }; ClassWithWriteOnlyProp c; int i; c.prop2 = i; // Ok: Write to the write-only property i = c.prop2; // Compile error: Cannot access the value of the write-only property
Public Types | |
typedef V | value_type |
typedef R | reference_type |
typedef C | container_type |
typedef field_property_set< V, R, C > | class_type |
Public Member Functions | |
class_type & | operator= (reference_type value) |
Provides write-only access to the property. |
class_type& operator= | ( | reference_type | value | ) | [inline] |
Provides write-only access to the property.