Reference documentation for deal.II version 9.4.1
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
always_return< ArgType, ValueType > Struct Template Reference

#include <deal.II/base/template_constraints.h>

Public Member Functions

ValueType operator() (const ArgType &)
 

Public Attributes

ValueType value
 

Detailed Description

template<typename ArgType, typename ValueType>
struct always_return< ArgType, ValueType >

A class that always returns a given value. This is needed as a workaround for lambdas used as default parameters some compilers struggle to deal with.

Definition at line 357 of file template_constraints.h.

Member Function Documentation

◆ operator()()

template<typename ArgType , typename ValueType >
ValueType always_return< ArgType, ValueType >::operator() ( const ArgType &  )
inline

Definition at line 361 of file template_constraints.h.

Member Data Documentation

◆ value

template<typename ArgType , typename ValueType >
ValueType always_return< ArgType, ValueType >::value

Definition at line 359 of file template_constraints.h.


The documentation for this struct was generated from the following file: