Reference documentation for deal.II version Git 497f915867 2021-09-17 22:46:48 +0200
\(\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\}}\)
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 192 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 196 of file template_constraints.h.

Member Data Documentation

◆ value

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

Definition at line 194 of file template_constraints.h.


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