![]() |
Blaze
3.6
|
Header file for the IntegralConstant class template. More...
Go to the source code of this file.
Classes | |
struct | blaze::IntegralConstant< T, N > |
Generic wrapper for a compile time constant integral value.The IntegralConstant class template represents a generic wrapper for a compile time constant integral value. The value of an IntegralConstant can be accessed via the nested value (which is guaranteed to be of type T), the type can be accessed via the nested type definition ValueType. More... | |
Namespaces | |
blaze | |
Namespace of the Blaze C++ math library. | |
Typedefs | |
template<bool B> | |
using | blaze::BoolConstant = IntegralConstant< bool, B > |
Generic wrapper for a compile time constant boolean value.The BoolConstant alias template represents a generic wrapper for a compile time constant boolean value. The value of a BoolConstant can be accessed via the nested value (which is guaranteed to be of type bool ), the type can be accessed via the nested type definition ValueType. More... | |
using | blaze::FalseType = BoolConstant< false > |
Type/value traits base class.The FalseType class is used as base class for type traits and value traits that evaluate to false. | |
using | blaze::TrueType = BoolConstant< true > |
Type traits base class.The TrueType class is used as base class for type traits and value traits that evaluate to true. | |
template<bool B> | |
using | blaze::Bool_t = IntegralConstant< bool, B > |
Compile time integral constant wrapper for bool.The Bool_t alias template represents an integral wrapper for a compile time constant expression of type bool. The value of a Bool_t can be accessed via the nested value (which is guaranteed to be of type bool), the type can be accessed via the nested type definition ValueType. More... | |
template<char N> | |
using | blaze::Char_t = IntegralConstant< char, N > |
Compile time integral constant wrapper for char.The Char_t alias template represents an integral wrapper for a compile time constant expression of type char. The value of an Char_t can be accessed via the nested value (which is guaranteed to be of type char), the type can be accessed via the nested type definition ValueType. More... | |
template<int N> | |
using | blaze::Int_t = IntegralConstant< int, N > |
Compile time integral constant wrapper for int.The Int_t alias template represents an integral wrapper for a compile time constant expression of type int. The value of an Int_t can be accessed via the nested value (which is guaranteed to be of type int), the type can be accessed via the nested type definition ValueType. More... | |
template<long N> | |
using | blaze::Long_t = IntegralConstant< long, N > |
Compile time integral constant wrapper for long.The Long_t alias template represents an integral wrapper for a compile time constant expression of type long. The value of an Long_t can be accessed via the nested value (which is guaranteed to be of type long), the type can be accessed via the nested type definition ValueType. More... | |
template<ptrdiff_t N> | |
using | blaze::Ptrdiff_t = IntegralConstant< ptrdiff_t, N > |
Compile time integral constant wrapper for ptrdiff_t.The Ptrdiff_t alias template represents an integral wrapper for a compile time constant expression of type ptrdiff_t. The value of an Ptrdiff_t can be accessed via the nested value (which is guaranteed to be of type ptrdiff_t), the type can be accessed via the nested type definition ValueType. More... | |
template<size_t N> | |
using | blaze::Size_t = IntegralConstant< size_t, N > |
Compile time integral constant wrapper for size_t.The Size_t alias template represents an integral wrapper for a compile time constant expression of type size_t. The value of an Size_t can be accessed via the nested value (which is guaranteed to be of type size_t), the type can be accessed via the nested type definition ValueType. More... | |
Functions | |
template<bool B> | |
constexpr BoolConstant<!B > | blaze::operator! (BoolConstant< B >) noexcept |
Logical NOT of a boolean constant. More... | |
template<bool B1, bool B2> | |
constexpr BoolConstant< B1 &&B2 > | blaze::operator && (BoolConstant< B1 >, BoolConstant< B2 >) noexcept |
Logical AND of two boolean constants. More... | |
template<bool B1, bool B2> | |
constexpr BoolConstant< B1||B2 > | blaze::operator|| (BoolConstant< B1 >, BoolConstant< B2 >) noexcept |
Logical OR of two boolean constants. More... | |
Header file for the IntegralConstant class template.
Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
This file is part of the Blaze library. You can redistribute it and/or modify it under the terms of the New (Revised) BSD License. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.