StdContainerAdaptor.h
Go to the documentation of this file.
1#ifndef __GfxTL_STDCONTAINERADAPTOR_HEADER__
2#define __GfxTL_STDCONTAINERADAPTOR_HEADER__
3#include <memory>
4
5namespace GfxTL
6{
7 template <template <class, class> class ContainerT,
8 template <class> class AllocatorT = std::allocator>
10 {
11 template <class T>
12 class Container : public ContainerT<T, AllocatorT<T>>
13 {
14 public:
15 typedef ContainerT<T, std::allocator<T>> ContainerType;
16
18 {
19 }
20
21 Container(typename ContainerType::size_type s) : ContainerType(s)
22 {
23 }
24
25 Container(typename ContainerType::size_type s,
26 const typename ContainerType::value_type& v) :
27 ContainerType(s, v)
28 {
29 }
30 };
31 };
32}; // namespace GfxTL
33
34#endif
Container(typename ContainerType::size_type s, const typename ContainerType::value_type &v)
Container(typename ContainerType::size_type s)
ContainerT< T, std::allocator< T > > ContainerType
Definition AABox.h:10