Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
MultiRefOpt.hpp File Reference
Include dependency graph for MultiRefOpt.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sham::MultiRefOpt< Targ >
 A variant of MultiRef for optional buffers. More...
struct  sham::details::mapper< T >
 internal_utility for MultiRef template deduction guide More...
struct  sham::details::mapper< shambase::opt_ref< T > >
 internal_utility for MultiRef template deduction guide More...

Namespaces

namespace  sham
 namespace for backends this one is named only sham since shambackends is too long to write

Functions

template<class T>
shambase::opt_ref< T > sham::to_opt_ref (T &t)
 Converts a reference to a given object into an optional reference wrapper.
template<class T>
auto sham::empty_buf_ref ()
 Returns an empty optional containing a reference to a sham::DeviceBuffer<T>.
template<class... Targ>
 sham::MultiRefOpt (Targ... arg) -> MultiRefOpt< typename details::mapper< Targ >::type... >
 deduction guide to allow the MutliRefOpt to be build without the use of sham::to_opt_ref

Detailed Description

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file MultiRefOpt.hpp.