forked from boostorg/core
Update NVP implementation, tests, docs
This commit is contained in:
1 parent
f52dec58c2
commit
7cc1047ab7
3 files changed
+1
-144
No files matched your search
+1
-19
@@ -48,14 +48,8 @@ public:
|
||||
T& value() const noexcept;
|
||||
|
||||
const T& const_value() const noexcept;
|
||||
|
||||
template<class A>
|
||||
void serialize(A& archive, unsigned);
|
||||
};
|
||||
|
||||
template<class T>
|
||||
struct is_nvp;
|
||||
|
||||
template<class T>
|
||||
const nvp<T> make_nvp(const char* name, T& value) noexcept;
|
||||
|
||||
@@ -79,19 +73,7 @@ const nvp<T> make_nvp(const char* name, T& value) noexcept;
|
||||
[[`T& value() const noexcept;`]
|
||||
[Returns a reference to the value.]]
|
||||
[[`const T& const_value() const noexcept;`]
|
||||
[Returns a reference to the value.]]
|
||||
[[`template<class A> void serialize(A& archive, unsigned);`]
|
||||
[Calls `archive.operator<<(const_value())` if `A::is_saving` is a true type,
|
||||
otherwise `archive.operator>>(value())`.]]]
|
||||
|
||||
[endsect]
|
||||
|
||||
[section Traits]
|
||||
|
||||
[variablelist
|
||||
[[`template<class T> struct is_nvp;`]
|
||||
[Provides static constant `value` equal to true if `T` is an NVP type,
|
||||
otherwise false.]]]
|
||||
[Returns a reference to the value.]]]
|
||||
|
||||
[endsect]
|
||||
|
||||
|
||||
Reference in new issue
Block a user