DUNE-ACFEM (unstable)

TemplateAlgorithms

Various template meta-programming stuff (non-tuple, non-sequence). More...

Typedefs

template<std::size_t mask>
using Dune::ACFem::FindMostSignificantBit = IndexConstant< FindMostSignificantBitHelper< std::size_t, mask >::value >
 Template-algorithm which defines the index of the most significant bit as a std::index_constant.
 
template<std::size_t mask>
using Dune::ACFem::FindLeastSignificantBit = IndexConstant< FindLeastSignificantBitHelper< std::size_t, mask >::value >
 Template-algorithm which defines the index of the least significant bit as a std::index_constant.
 
template<std::size_t mask>
using Dune::ACFem::FindFirstZeroBit = IndexConstant< FindLeastSignificantBitHelper< std::size_t, ~mask >::value >
 Template-algorithm which defines the index of the first 0-bit as a std::index_constant.
 
template<class Const >
using Dune::ACFem::Incr = Constant< typename Const::value_type, Const::value+1 >
 Increment an integral_constant.
 
template<class Const >
using Dune::ACFem::Decr = Constant< typename Const::value_type, Const::value - 1 >
 Decrement an integral_constant.
 

Functions

template<class T , T V>
constexpr std::size_t Dune::ACFem::findMostSignificantBit (Constant< T, V > &&)
 Template-algorithm which returns the the index of the most significant bit in an integer-constant. More...
 
template<class T , T V>
constexpr std::size_t Dune::ACFem::findLeastSignificantBit (Constant< T, V > &&)
 Template-algorithm which returns the the index of the least significant bit in an integer-constant. More...
 
template<class T , T V>
constexpr std::size_t Dune::ACFem::findFirstZeroBit (Constant< T, V > &&)
 Template-algorithm which returns the the index of the first 0-bit in an integer-constant. More...
 

Detailed Description

Various template meta-programming stuff (non-tuple, non-sequence).

Function Documentation

◆ findFirstZeroBit()

template<class T , T V>
constexpr std::size_t Dune::ACFem::findFirstZeroBit ( Constant< T, V > &&  )
constexpr

Template-algorithm which returns the the index of the first 0-bit in an integer-constant.

Return ~0UL if no bit is set.

◆ findLeastSignificantBit()

template<class T , T V>
constexpr std::size_t Dune::ACFem::findLeastSignificantBit ( Constant< T, V > &&  )
constexpr

Template-algorithm which returns the the index of the least significant bit in an integer-constant.

Return ~0UL if no bit is set.

◆ findMostSignificantBit()

template<class T , T V>
constexpr std::size_t Dune::ACFem::findMostSignificantBit ( Constant< T, V > &&  )
constexpr

Template-algorithm which returns the the index of the most significant bit in an integer-constant.

Return ~0UL if no bit is set.

Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Apr 24, 22:30, 2024)