solinject
1.0.0
C++17 Dependency Injection header-only library
|
Go to the documentation of this file.
26 #include <type_traits>
28 namespace sol::di::impl
43 template<
class...TArgs>
54 size_t newSize = destination.
size() + source.
size();
70 template <
class TMutex,
bool isEnabled>
78 template <
class TMutex,
bool isEnabled>
86 template <
bool isEnabled,
class...TMutexes>
Empty()
Default constructor.
Definition: Utils.hpp:35
std::conditional_t< isEnabled, std::lock_guard< TMutex >, Empty > DiscardableLock
Lock, which can be discarded in compile-time.
Definition: Utils.hpp:79
std::conditional_t< isEnabled, std::scoped_lock< TMutexes... >, Empty > DiscardableScopedLock
Scoped lock, which can be discarded in compile-time.
Definition: Utils.hpp:87
Empty class.
Definition: Utils.hpp:31
std::conditional_t< isEnabled, TMutex, Empty > DiscardableMutex
Mutex, which can be discarded in compile-time.
Definition: Utils.hpp:71
Empty(const TArgs &...args)
Constructor, which takes any number of any arguments.
Definition: Utils.hpp:44
T make_move_iterator(T... args)
void ConcatenateVectors(std::vector< T > &destination, std::vector< T > source)
Adds elements of a vector to the end of the other vector.
Definition: Utils.hpp:52