Reference documentation for deal.II version 9.6.0
\(\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
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 331 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 335 of file template_constraints.h.

Member Data Documentation

◆ value

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

Definition at line 333 of file template_constraints.h.


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