TTKMusicPlayer  4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Classes | Typedefs | Functions
std Namespace Reference

Classes

struct  _MakeUnique
 
struct  _MakeUnique< _Tp[]>
 
struct  _MakeUnique< _Tp[_Bound]>
 

Typedefs

template<typename _Tp >
using remove_extent_t = typename remove_extent< _Tp >::type
 Alias template for remove_extent. More...
 
template<typename _Tp >
using remove_all_extents_t = typename remove_all_extents< _Tp >::type
 Alias template for remove_all_extents. More...
 
using any = TTKAny
 
template<typename T >
using shared_ptr = TTKSharedPtr< T >
 
using spin_lock = TTKSpinLock
 
using spin_lock_guard = TTKSpinLockGuard
 
using spinlock = spin_lock
 
using spinlock_guard = spin_lock_guard
 
template<class _Key , class _Value >
using unsorted_map = TTKUnsortedMap< _Key, _Value >
 
template<typename... Types>
using variant = TTKVariant< Types...>
 

Functions

template<typename _Tp , typename _Up = _Tp>
_Tp exchange (_Tp &__obj, _Up &&__new_val) noexcept
 Assign __new_val to __obj and return its previous value. More...
 
template<typename _Tp >
constexpr const _Tp & clamp (const _Tp &_Val, const _Tp &_Min_val, const _Tp &_Max_val)
 
void swap (TTKAny &left, TTKAny &right) noexcept
 
template<typename _Tp , typename... _Args>
_MakeUnique< _Tp >::__single_object make_unique (_Args &&...__args)
 std::make_unique for single objects More...
 
template<typename _Tp >
_MakeUnique< _Tp >::__array make_unique (size_t __num)
 std::make_unique for arrays of unknown bound More...
 
template<typename _Tp , typename... _Args>
_MakeUnique< _Tp >::__invalid_type make_unique (_Args &&...)=delete
 Disable std::make_unique for arrays of known bound. More...
 
template<class _Key , class _Value >
void swap (TTKUnsortedMap< _Key, _Value > &left, TTKUnsortedMap< _Key, _Value > &right) noexcept
 

Typedef Documentation

using std::any = typedef TTKAny

Definition at line 219 of file ttkany.h.

template<typename _Tp >
using std::remove_all_extents_t = typedef typename remove_all_extents<_Tp>::type

Alias template for remove_all_extents.

Definition at line 48 of file ttkcompat.h.

template<typename _Tp >
using std::remove_extent_t = typedef typename remove_extent<_Tp>::type

Alias template for remove_extent.

Definition at line 44 of file ttkcompat.h.

template<typename T >
using std::shared_ptr = typedef TTKSharedPtr<T>

Definition at line 193 of file ttksmartptr.h.

using std::spin_lock = typedef TTKSpinLock

Definition at line 78 of file ttkspinlock.h.

Definition at line 79 of file ttkspinlock.h.

using std::spinlock = typedef spin_lock

Definition at line 81 of file ttkspinlock.h.

Definition at line 82 of file ttkspinlock.h.

template<class _Key , class _Value >
using std::unsorted_map = typedef TTKUnsortedMap<_Key, _Value>

Definition at line 433 of file ttkunsortedmap.h.

template<typename... Types>
using std::variant = typedef TTKVariant<Types...>

Definition at line 237 of file ttkvariant.h.

Function Documentation

template<typename _Tp >
constexpr const _Tp& std::clamp ( const _Tp &  _Val,
const _Tp &  _Min_val,
const _Tp &  _Max_val 
)
inline

Definition at line 64 of file ttkcompat.h.

References TTK::max(), and TTK::min().

template<typename _Tp , typename _Up = _Tp>
_Tp std::exchange ( _Tp &  __obj,
_Up &&  __new_val 
)
inlinenoexcept

Assign __new_val to __obj and return its previous value.

Definition at line 54 of file ttkcompat.h.

Referenced by TTKAny::swap().

template<typename _Tp , typename... _Args>
_MakeUnique<_Tp>::__single_object std::make_unique ( _Args &&...  __args)
inline

std::make_unique for single objects

Definition at line 49 of file ttksmartptr.h.

template<typename _Tp >
_MakeUnique<_Tp>::__array std::make_unique ( size_t  __num)
inline

std::make_unique for arrays of unknown bound

Definition at line 56 of file ttksmartptr.h.

template<typename _Tp , typename... _Args>
_MakeUnique<_Tp>::__invalid_type std::make_unique ( _Args &&  ...)
inlinedelete

Disable std::make_unique for arrays of known bound.

void std::swap ( TTKAny left,
TTKAny right 
)
inlinenoexcept

Definition at line 212 of file ttkany.h.

Referenced by TTKConcurrentQueue< T >::clear(), and MusicSongMeta::operator=().

template<class _Key , class _Value >
void std::swap ( TTKUnsortedMap< _Key, _Value > &  left,
TTKUnsortedMap< _Key, _Value > &  right 
)
inlinenoexcept

Definition at line 427 of file ttkunsortedmap.h.