Sha256: 860d2a5f2830847336d7f8fbfa8891b3b07130807b74762f5d4ba36d314b1ca4

Contents?: true

Size: 780 Bytes

Versions: 6

Compression:

Stored size: 780 Bytes

Contents

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

#ifndef TAO_JSON_EVENTS_PRODUCE_HPP
#define TAO_JSON_EVENTS_PRODUCE_HPP

#include <type_traits>
#include <utility>

#include "../forward.hpp"

namespace tao::json::events
{
   template< template< typename... > class Traits = traits, typename Consumer, typename T >
   void produce( Consumer& c, T&& t )
   {
      Traits< std::decay_t< T > >::template produce< Traits >( c, std::forward< T >( t ) );
   }

   template< template< typename... > class Traits = traits, typename Consumer, typename T >
   void produce( Consumer&& c, T&& t )
   {
      produce< Traits >( c, std::forward< T >( t ) );
   }

}  // namespace tao::json::events

#endif

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
couchbase-3.4.5 ext/couchbase/third_party/json/include/tao/json/events/produce.hpp
couchbase-3.4.4 ext/couchbase/third_party/json/include/tao/json/events/produce.hpp
couchbase-3.4.3 ext/couchbase/third_party/json/include/tao/json/events/produce.hpp
couchbase-3.4.2 ext/couchbase/third_party/json/include/tao/json/events/produce.hpp
couchbase-3.4.1 ext/couchbase/third_party/json/include/tao/json/events/produce.hpp
couchbase-3.4.0 ext/couchbase/third_party/json/include/tao/json/events/produce.hpp