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

Last change on this file since 406 was 406, checked in by epyon, 10 years ago
  • code compiles cleanly on maximum warning level
File size: 1.4 KB
RevLine 
[395]1// Copyright (C) 2014-2015 ChaosForge Ltd
[260]2// http://chaosforge.org/
3//
[395]4// This file is part of Nova libraries.
5// For conditions of distribution and use, see copying.txt file in root folder.
[260]6
7/**
8 * @file array.hh
9 * @author Kornel Kisielewicz epyon@chaosforge.org
10 * @brief exception free array classes
11 */
12
[391]13#ifndef NV_STL_ARRAY_HH
14#define NV_STL_ARRAY_HH
[260]15
[391]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>
[260]20
21namespace nv
22{
23
[374]24        template< typename T, size_t N >
[383]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 >
[391]37        using array =
38                detail::add_random_access <
39                        detail::add_iterators <
40                                fixed_container_handler< fixed_static_storage< T, N > > > >;
41               
[382]42        template< typename T >
[391]43        using dynamic_array =
44                detail::add_random_access <
45                        detail::add_iterators <
46                                sized_container_handler< resizable_dynamic_storage< T > > > >;
[375]47
[260]48}
49
[406]50#endif // NV_STL_ARRAY_HH
Note: See TracBrowser for help on using the repository browser.