OSVR-Core
SizeT.h
Go to the documentation of this file.
1 
14 // Copyright 2015 Sensics, Inc.
15 // TypePack is part of OSVR-Core.
16 //
17 // Incorporates code from "meta":
18 // Copyright Eric Niebler 2014-2015
19 //
20 // Use, modification and distribution is subject to the
21 // Boost Software License, Version 1.0. (See accompanying
22 // file LICENSE_1_0.txt or copy at
23 // http://www.boost.org/LICENSE_1_0.txt)
24 //
25 // Project home: https://github.com/ericniebler/meta
26 //
27 
28 #ifndef INCLUDED_SizeT_h_GUID_4202F0A3_8E2A_4888_7041_D6C829172343
29 #define INCLUDED_SizeT_h_GUID_4202F0A3_8E2A_4888_7041_D6C829172343
30 
31 // Internal Includes
32 // - none
33 
34 // Library/third-party includes
35 // - none
36 
37 // Standard includes
38 #include <cstddef>
39 #include <type_traits>
40 
41 namespace osvr {
42 namespace typepack {
45  template <std::size_t V>
46  using size_t_ = std::integral_constant<std::size_t, V>;
47 } // namespace typepack
48 } // namespace osvr
49 #endif // INCLUDED_SizeT_h_GUID_4202F0A3_8E2A_4888_7041_D6C829172343
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
std::integral_constant< std::size_t, V > size_t_
Alias template to simplify creating an integral constant of size_t.
Definition: SizeT.h:46