#include <mutex>
#include <vector>
#include <type_traits>
Go to the source code of this file.
|
| template<class TMutex , bool isEnabled> |
| using | sol::di::impl::DiscardableMutex = std::conditional_t< isEnabled, TMutex, Empty > |
| | Mutex, which can be discarded in compile-time. More...
|
| |
| template<class TMutex , bool isEnabled> |
| using | sol::di::impl::DiscardableLock = std::conditional_t< isEnabled, std::lock_guard< TMutex >, Empty > |
| | Lock, which can be discarded in compile-time. More...
|
| |
| template<bool isEnabled, class... TMutexes> |
| using | sol::di::impl::DiscardableScopedLock = std::conditional_t< isEnabled, std::scoped_lock< TMutexes... >, Empty > |
| | Scoped lock, which can be discarded in compile-time. More...
|
| |
◆ DiscardableLock
template<class TMutex , bool isEnabled>
Lock, which can be discarded in compile-time.
- Template Parameters
-
| TMutex | mutex type |
| isEnabled | true if the lock should NOT be discarded, false otherwise |
◆ DiscardableMutex
template<class TMutex , bool isEnabled>
Mutex, which can be discarded in compile-time.
- Template Parameters
-
| TMutex | mutex type |
| isEnabled | true if the mutex should NOT be discarded, false otherwise |
◆ DiscardableScopedLock
template<bool isEnabled, class... TMutexes>
Scoped lock, which can be discarded in compile-time.
- Template Parameters
-
| TMutexes | mutexes types |
| isEnabled | true if the lock should NOT be discarded, false otherwise |
◆ ConcatenateVectors()
Adds elements of a vector to the end of the other vector.
- Template Parameters
-
| T | the vector elements type |
- Parameters
-
| destination | the vector, to which elements should be added |
| source | the vector, whose elements should be added to destination |