2 Copyright 2019 Glen Joseph Fernandes
5 Distributed under the Boost Software License, Version 1.0.
6 (http://www.boost.org/LICENSE_1_0.txt)
8 #ifndef BOOST_CORE_NVP_HPP
9 #define BOOST_CORE_NVP_HPP
11 #include <boost/core/addressof.hpp>
12 #include <boost/config.hpp>
15 namespace serialization {
20 nvp(const char* n, T& v) BOOST_NOEXCEPT
22 , v_(boost::addressof(v)) { }
24 const char* name() const BOOST_NOEXCEPT {
28 T& value() const BOOST_NOEXCEPT {
32 const T& const_value() const BOOST_NOEXCEPT {
43 make_nvp(const char* n, T& v) BOOST_NOEXCEPT
50 using serialization::nvp;
51 using serialization::make_nvp;
55 #define BOOST_NVP(v) boost::make_nvp(BOOST_STRINGIZE(v), v)