source: trunk/nv/stl/array.hh @ 434

Last change on this file since 434 was 434, checked in by epyon, 10 years ago
  • simplification of container hierarchy
File size: 1.2 KB
Line 
1// Copyright (C) 2014-2015 ChaosForge Ltd
2// http://chaosforge.org/
3//
4// This file is part of Nova libraries.
5// For conditions of distribution and use, see copying.txt file in root folder.
6
7/**
8 * @file array.hh
9 * @author Kornel Kisielewicz epyon@chaosforge.org
10 * @brief exception free array classes
11 */
12
13#ifndef NV_STL_ARRAY_HH
14#define NV_STL_ARRAY_HH
15
16#include <nv/stl/container/contiguous_storage.hh>
17#include <nv/stl/container/fixed_storage.hh>
18#include <nv/stl/container/sized_storage.hh>
19#include <nv/stl/container/random_access.hh>
20
21namespace nv
22{
23
24        template< typename T, size_t N >
25        using fixed_static_storage = fixed_storage< static_storage< T, N >, N >;
26
27        template< typename T, size_t N >
28        using fixed_dynamic_storage = fixed_storage< dynamic_storage< T >, N >;
29
30        template< typename T >
31        using resizable_dynamic_storage = sized_storage< dynamic_storage< T > >;
32
33        template< typename T, size_t N >
34        using resizable_static_storage = sized_storage< static_storage< T, N > >;
35
36        template< typename T, size_t N >
37        using array =
38                random_access < fixed_static_storage< T, N > >;
39               
40        template< typename T >
41        using dynamic_array =
42                random_access < resizable_dynamic_storage< T > >;
43
44}
45
46#endif // NV_STL_ARRAY_HH
Note: See TracBrowser for help on using the repository browser.