⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vector.hpp

📁 ACE编程的一本经典BIBLE的源代码,喜欢网络编程的别错过
💻 HPP
字号:
// file      : Utility/Hetero/Vector.hpp
// author    : Boris Kolpackov <boris@kolpackov.net>
// copyright : Copyright (c) 2002-2003 Boris Kolpackov
// license   : http://kolpackov.net/license.html

#ifndef UTILITY_HETERO_VECTOR_HPP
#define UTILITY_HETERO_VECTOR_HPP

#include <vector>

#include "Utility/Hetero/TypeList.hpp"
#include "Utility/Hetero/TypedContainer.hpp"

namespace Utility
{
  namespace Hetero
  {
    template <typename T0 = NullType,
              typename T1 = NullType,
              typename T2 = NullType>
    class Vector;

    template <>
    class Vector<NullType, NullType, NullType>;

    template <typename T0>
    class Vector<T0, NullType, NullType> :
      public std::vector<TypedContainer<TypeList<T0> > >
    {
    };

    template <typename T0, typename T1>
    class Vector<T0, T1, NullType> :
      public std::vector<TypedContainer<TypeList<T0, T1> > >
    {
    };

    template <typename T0, typename T1, typename T2>
    class Vector :
      public std::vector<TypedContainer<TypeList<T0, T1, T2> > >
    {
    };
  }
}

#endif  // UTILITY_HETERO_VECTOR_HPP
//Vector.hpp,v 1.1 2005/05/24 04:33:12 turkaye Exp

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -