Sha256: 35add18bf519658d4a06f2e134579190ea075fa6146aae2d3ae033012620bf19
Contents?: true
Size: 1.01 KB
Versions: 24
Compression:
Stored size: 1.01 KB
Contents
// Copyright (c) 2016-2020 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/json/ #ifndef TAO_JSON_INTERNAL_PAIR_HPP #define TAO_JSON_INTERNAL_PAIR_HPP #include <string> #include <type_traits> #include <utility> #include "../forward.hpp" namespace tao::json::internal { template< template< typename... > class Traits > struct pair { mutable std::string key; mutable basic_value< Traits > value; template< typename U > pair( U&& v ) : key( Traits< std::decay_t< U > >::template default_key< Traits >::as_string() ), value( std::forward< U >( v ) ) {} template< typename U > pair( U&& k, basic_value< Traits >&& v ) : key( std::forward< U >( k ) ), value( std::move( v ) ) {} template< typename U > pair( U&& k, const basic_value< Traits >& v ) : key( std::forward< U >( k ) ), value( v ) {} }; } // namespace tao::json::internal #endif
Version data entries
24 entries across 24 versions & 1 rubygems