blob: 8aadb13159c00550a005554d9b68d5befd7fab80 [file] [log] [blame]
Jeff Thompsona28eed82013-08-22 16:21:10 -07001
Jeff Thompson3d613fd2013-10-15 15:39:04 -07002#ifndef NDNBOOST_MPL_VECTOR_AUX_VECTOR0_HPP_INCLUDED
3#define NDNBOOST_MPL_VECTOR_AUX_VECTOR0_HPP_INCLUDED
Jeff Thompsona28eed82013-08-22 16:21:10 -07004
5// Copyright Aleksey Gurtovoy 2000-2004
6//
7// Distributed under the Boost Software License, Version 1.0.
8// (See accompanying file LICENSE_1_0.txt or copy at
9// http://www.boost.org/LICENSE_1_0.txt)
10//
11// See http://www.boost.org/libs/mpl for documentation.
12
13// $Id: vector0.hpp 49267 2008-10-11 06:19:02Z agurtovoy $
14// $Date: 2008-10-10 23:19:02 -0700 (Fri, 10 Oct 2008) $
15// $Revision: 49267 $
16
17#include <ndnboost/mpl/long.hpp>
18#include <ndnboost/mpl/void.hpp>
19#include <ndnboost/mpl/aux_/na.hpp>
20#include <ndnboost/mpl/aux_/type_wrapper.hpp>
21
22#include <ndnboost/mpl/vector/aux_/iterator.hpp>
23#include <ndnboost/mpl/vector/aux_/tag.hpp>
24#include <ndnboost/mpl/aux_/config/typeof.hpp>
25
26namespace ndnboost { namespace mpl {
27
28template< typename Dummy = na > struct vector0;
29
30template<> struct vector0<na>
31{
Jeff Thompson3d613fd2013-10-15 15:39:04 -070032#if defined(NDNBOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES)
Jeff Thompsona28eed82013-08-22 16:21:10 -070033 typedef aux::vector_tag tag;
34 typedef vector0 type;
35 typedef long_<32768> lower_bound_;
36 typedef lower_bound_ upper_bound_;
37 typedef long_<0> size;
38
39 static aux::type_wrapper<void_> item_(...);
40#else
41 typedef aux::vector_tag<0> tag;
42 typedef vector0 type;
43 typedef void_ item0;
44
45 typedef v_iter<vector0<>,0> begin;
46 typedef v_iter<vector0<>,0> end;
47#endif
48};
49
50}}
51
Jeff Thompson3d613fd2013-10-15 15:39:04 -070052#endif // NDNBOOST_MPL_VECTOR_AUX_VECTOR0_HPP_INCLUDED