|
Mundy: Multibody Nonlocal Dynamics Version of the Day
|
A Kokkos-compatible wrapper around a reference. More...
#include <reference_wrapper.hpp>
Public Types | |
| using | type = T |
Public Member Functions | |
| constexpr | reference_wrapper (T &ref) noexcept |
| reference_wrapper (T &&)=delete | |
| constexpr | reference_wrapper (const reference_wrapper &)=default |
| constexpr reference_wrapper & | operator= (const reference_wrapper &)=default |
| constexpr | operator T& () const noexcept |
| constexpr T & | get () const noexcept |
| template<class... Args> | |
| constexpr decltype(auto) | operator() (Args &&... args) const |
| template<class Index> | |
| constexpr decltype(auto) | operator[] (Index &&idx) const |
| template<class... Args> | |
| constexpr decltype(auto) | operator() (Args &&... args) |
| template<class Index> | |
| constexpr decltype(auto) | operator[] (Index &&idx) |
Provides the same core behavior as std::reference_wrapper:
| using mundy::reference_wrapper< T >::type = T |
|
inlineconstexprnoexcept |
|
delete |
|
constexprdefault |
|
constexprdefault |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |