annotate DEPENDENCIES/generic/include/boost/fusion/container/list/detail/empty_impl.hpp @ 47:fe753ff3d0b5

Simpler solution to .cat test
author Chris Cannam
date Thu, 07 Aug 2014 15:05:37 +0100
parents 2665513ce2d3
children c530137014c0
rev   line source
Chris@16 1 /*=============================================================================
Chris@16 2 Copyright (c) 2007 Tobias Schwinger
Chris@16 3
Chris@16 4 Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 6 ==============================================================================*/
Chris@16 7 #if !defined(BOOST_FUSION_SEQUENCE_EMPTY_IMPL_HPP_INCLUDED)
Chris@16 8 #define BOOST_FUSION_SEQUENCE_EMPTY_IMPL_HPP_INCLUDED
Chris@16 9
Chris@16 10 #include <boost/type_traits/is_convertible.hpp>
Chris@16 11
Chris@16 12 namespace boost { namespace fusion
Chris@16 13 {
Chris@16 14 struct cons_tag;
Chris@16 15
Chris@16 16 struct nil_;
Chris@16 17
Chris@16 18 template <typename Car, typename Cdr>
Chris@16 19 struct cons;
Chris@16 20
Chris@16 21 namespace extension
Chris@16 22 {
Chris@16 23 template <typename Tag>
Chris@16 24 struct empty_impl;
Chris@16 25
Chris@16 26 template <>
Chris@16 27 struct empty_impl<cons_tag>
Chris@16 28 {
Chris@16 29 template <typename Sequence>
Chris@16 30 struct apply
Chris@16 31 : boost::is_convertible<Sequence, nil_>
Chris@16 32 {};
Chris@16 33 };
Chris@16 34 }
Chris@16 35 }}
Chris@16 36
Chris@16 37 #endif