Reference documentation for deal.II version 9.6.2
 
\(\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
Threads::internal::maybe_make_ref< T & > Struct Template Reference

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

Inheritance diagram for Threads::internal::maybe_make_ref< T & >:

Static Public Member Functions

static std::reference_wrapper< T > act (T &t)
 
static T act (const T &t)
 

Detailed Description

template<typename T>
struct Threads::internal::maybe_make_ref< T & >

A general template that returns std::ref(t) if t is of reference type, and t otherwise.

The case that t is of reference type is handled in this partial specialization.

Definition at line 412 of file thread_management.h.

Member Function Documentation

◆ act() [1/2]

template<typename T>
static std::reference_wrapper< T > Threads::internal::maybe_make_ref< T & >::act ( T & t)
inlinestatic

Definition at line 415 of file thread_management.h.

◆ act() [2/2]

static T Threads::internal::maybe_make_ref< T >::act ( const T & t)
inlinestatic

Definition at line 396 of file thread_management.h.


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