Sha256: cdd2e647b3fef9d6e62e265c82d93e3b1fc36ed1e0db7267c2bb27f22ee7aa2c

Contents?: true

Size: 1.04 KB

Versions: 34

Compression:

Stored size: 1.04 KB

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_INTERNAL_INHERIT_HPP
#define TAO_JSON_BINDING_INTERNAL_INHERIT_HPP

#include "../../internal/type_traits.hpp"

#include "../inherit.hpp"

namespace tao::json::binding::internal
{
   template< typename T >
   struct inherit_elements_t
   {
      using list = json::internal::type_list< T >;
   };

   template< typename T >
   struct inherit_elements_t< inherit< T > >
   {
      using list = typename T::elements;
   };

   template< typename T >
   using inherit_elements = typename inherit_elements_t< T >::list;

   template< typename T >
   struct inherit_members_t
   {
      using list = json::internal::type_list< T >;
   };

   template< typename T >
   struct inherit_members_t< inherit< T > >
   {
      using list = typename T::members;
   };

   template< typename T >
   using inherit_members = typename inherit_members_t< T >::list;

}  // namespace tao::json::binding::internal

#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/internal/inherit.hpp
couchbase-3.2.0 ext/third_party/json/include/tao/json/binding/internal/inherit.hpp
couchbase-3.1.1 ext/third_party/json/include/tao/json/binding/internal/inherit.hpp
couchbase-3.1.1-universal-darwin-20 ext/third_party/json/include/tao/json/binding/internal/inherit.hpp
couchbase-3.1.0 ext/third_party/json/include/tao/json/binding/internal/inherit.hpp
couchbase-3.0.3 ext/third_party/json/include/tao/json/binding/internal/inherit.hpp
couchbase-3.0.3-universal-darwin-20 ext/third_party/json/include/tao/json/binding/internal/inherit.hpp
couchbase-3.0.2 ext/third_party/json/include/tao/json/binding/internal/inherit.hpp
couchbase-3.0.1-universal-darwin-19 ext/third_party/json/include/tao/json/binding/internal/inherit.hpp
couchbase-3.0.1 ext/third_party/json/include/tao/json/binding/internal/inherit.hpp
couchbase-3.0.0-universal-darwin-19 ext/third_party/json/include/tao/json/binding/internal/inherit.hpp
couchbase-3.0.0 ext/third_party/json/include/tao/json/binding/internal/inherit.hpp
couchbase-3.0.0.beta.1-universal-darwin-19 ext/third_party/json/include/tao/json/binding/internal/inherit.hpp
couchbase-3.0.0.beta.1 ext/third_party/json/include/tao/json/binding/internal/inherit.hpp
couchbase-3.0.0.alpha.5-x86_64-linux ext/third_party/json/include/tao/json/binding/internal/inherit.hpp
couchbase-3.0.0.alpha.5-universal-darwin-19 ext/third_party/json/include/tao/json/binding/internal/inherit.hpp
couchbase-3.0.0.alpha.5-x86_64-darwin-19 ext/third_party/json/include/tao/json/binding/internal/inherit.hpp
couchbase-3.0.0.alpha.5 ext/third_party/json/include/tao/json/binding/internal/inherit.hpp
couchbase-3.0.0.alpha.4-x86_64-linux ext/third_party/json/include/tao/json/binding/internal/inherit.hpp
couchbase-3.0.0.alpha.4-x86_64-darwin-19 ext/third_party/json/include/tao/json/binding/internal/inherit.hpp