ECSTASY
All in the name
Loading...
Searching...
No Matches
ecstasy::query::thread_safe_reference< T, ThreadSafe > Struct Template Reference

Get the reference type of a maybe thread safe type. More...

#include <Queryable.hpp>

Public Types

using type = std::reference_wrapper< T >
 

Detailed Description

template<typename T, bool ThreadSafe>
struct ecstasy::query::thread_safe_reference< T, ThreadSafe >

Get the reference type of a maybe thread safe type.

If ThreadSafe is true and T is Lockable, then the type is a LockableView<T>. Otherwise, the type is a std::reference_wrapper of T.

Template Parameters
TType.
ThreadSafeWhether the type should be thread safe or not. Default to true.
Author
Andréas Leroux (andre.nosp@m.as.l.nosp@m.eroux.nosp@m.@epi.nosp@m.tech..nosp@m.eu)
Since
1.0.0 (2024-04-17)

Definition at line 225 of file Queryable.hpp.

Member Typedef Documentation

◆ type

template<typename T , bool ThreadSafe>
using ecstasy::query::thread_safe_reference< T, ThreadSafe >::type = std::reference_wrapper<T>

Definition at line 226 of file Queryable.hpp.


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