OSVR-Core
Not.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_Not_h_GUID_F161831F_2D35_4288_38A9_782ED10CC625
29 #define INCLUDED_Not_h_GUID_F161831F_2D35_4288_38A9_782ED10CC625
30 
31 // Internal Includes
32 #include "Bool.h"
33 
34 // Library/third-party includes
35 // - none
36 
37 // Standard includes
38 // - none
39 namespace osvr {
40 namespace typepack {
41 
43  template <typename Bool> using not_ = bool_<!Bool::value>;
44 
45 } // namespace typepack
46 } // namespace osvr
47 
48 #endif // INCLUDED_Not_h_GUID_F161831F_2D35_4288_38A9_782ED10CC625
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
std::integral_constant< bool, V > bool_
Alias template to simplify creating a boolean integral constant.
Definition: Bool.h:43
bool_<!Bool::value > not_
Logical not on a single boolean.
Definition: Not.h:43
Header.