dune-functions 2.10
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Variables
type_traits.hh File Reference
#include <type_traits>
#include <dune/common/hybridutilities.hh>
#include <dune/common/typeutilities.hh>

Go to the source code of this file.

Classes

struct  Dune::Functions::HasStaticSize< T >
 Check if type is a statically sized container. More...
 
struct  Dune::Functions::StaticSizeOrZero< T >
 Obtain size of statically sized container, or 0 if dynamic size. More...
 

Namespaces

namespace  Dune
 
namespace  Dune::Functions
 

Typedefs

template<class T , class... Args>
using Dune::Functions::enableIfConstructible = std::enable_if_t< std::is_constructible_v< T, Args... >, int >
 Helper to constrain forwarding constructors.
 
template<class T >
using Dune::Functions::StaticSize = std::enable_if_t< HasStaticSize_v< T >, decltype(Dune::Hybrid::size(std::declval< T >()))>
 Obtain size of statically sized container as integral_constant, or fail.
 

Variables

template<class T >
constexpr bool Dune::Functions::HasStaticSize_v = HasStaticSize<T>::value
 A variable template representing the value of HasStaticSize.