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

Last change on this file since 395 was 395, checked in by epyon, 10 years ago
  • bulk update copyright update include guards cleanup core/common.hh -> common.hh minor cleanups
File size: 1.4 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/contiguous_storage_policy.hh>
18#include <nv/stl/container/fixed_container_handler.hh>
19#include <nv/stl/container/sized_container_handler.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 = resizable_storage< dynamic_storage< T > >;
32
33        template< typename T, size_t N >
34        using resizable_static_storage = resizable_storage< static_storage< T, N > >;
35
36        template< typename T, size_t N >
37        using array =
38                detail::add_random_access <
39                        detail::add_iterators <
40                                fixed_container_handler< fixed_static_storage< T, N > > > >;
41               
42        template< typename T >
43        using dynamic_array =
44                detail::add_random_access <
45                        detail::add_iterators <
46                                sized_container_handler< resizable_dynamic_storage< T > > > >;
47
48}
49
50#endif // NV_STL_ARRAY_HH
Note: See TracBrowser for help on using the repository browser.