Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / align / example / aligned_vector.hpp
1 /*
2  (c) 2014 Glen Joseph Fernandes
3  glenjofe at gmail dot com
4
5  Distributed under the Boost Software
6  License, Version 1.0.
7  http://boost.org/LICENSE_1_0.txt
8 */
9 #ifndef ALIGNED_VECTOR_HPP
10 #define ALIGNED_VECTOR_HPP
11
12 #include <boost/align/aligned_allocator.hpp>
13 #include <vector>
14
15 template<class T, std::size_t Alignment = 1>
16 using aligned_vector = std::vector<T,
17     boost::alignment::aligned_allocator<T, Alignment> >;
18
19 #endif