mirror of
https://github.com/boostorg/align.git
synced 2026-01-28 18:52:08 +00:00
Updated Boost.Align implementation
This commit is contained in:
19
example/aligned_vector.cpp
Normal file
19
example/aligned_vector.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
Copyright (c) 2014 Glen Joseph Fernandes
|
||||
glenfe at live dot com
|
||||
|
||||
Distributed under the Boost Software License,
|
||||
Version 1.0. (See accompanying file LICENSE_1_0.txt
|
||||
or copy at http://boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#include "aligned_vector.hpp"
|
||||
|
||||
enum {
|
||||
cache_line = 64
|
||||
};
|
||||
|
||||
int main()
|
||||
{
|
||||
aligned_vector<int, cache_line> v(32);
|
||||
v[0] = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user