Sha256: 4e8846a925e29eed5a1299dbbca159aad66fb5cbc09250796c7a8fbc7b42ad4d

Contents?: true

Size: 839 Bytes

Versions: 34

Compression:

Stored size: 839 Bytes

Contents

// Copyright (c) 2018-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/json/

#ifndef TAO_JSON_BINDING_MEMBER_HPP
#define TAO_JSON_BINDING_MEMBER_HPP

#include <string>

#include "element.hpp"
#include "member_kind.hpp"

#include "internal/type_key.hpp"

namespace tao::json::binding
{
   template< member_kind R, typename K, auto P >
   struct member
      : element< P >,
        internal::type_key< K, typename binding::element< P >::internal_t >
   {
      static constexpr member_kind kind = R;

      template< template< typename... > class Traits, typename C >
      [[nodiscard]] static bool is_nothing( const C& x )
      {
         return json::internal::is_nothing< Traits >( binding::element< P >::read( x ) );
      }
   };

}  // namespace tao::json::binding

#endif

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
couchbase-3.2.0-universal-darwin-20 ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.2.0 ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.1.1 ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.1.1-universal-darwin-20 ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.1.0 ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.0.3 ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.0.3-universal-darwin-20 ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.0.2 ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.0.1-universal-darwin-19 ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.0.1 ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.0.0-universal-darwin-19 ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.0.0 ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.0.0.beta.1-universal-darwin-19 ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.0.0.beta.1 ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.0.0.alpha.5-x86_64-linux ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.0.0.alpha.5-universal-darwin-19 ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.0.0.alpha.5-x86_64-darwin-19 ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.0.0.alpha.5 ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.0.0.alpha.4-x86_64-linux ext/third_party/json/include/tao/json/binding/member.hpp
couchbase-3.0.0.alpha.4-x86_64-darwin-19 ext/third_party/json/include/tao/json/binding/member.hpp