Vowpal Wabbit
Loading...
Searching...
No Matches
Public Member Functions | List of all members
VW::details::swap_guard_impl< T > Class Template Reference

#include <guard.h>

Public Member Functions

 swap_guard_impl (T *original_location, T *value_to_swap) noexcept
 
 swap_guard_impl (const swap_guard_impl &)=delete
 
swap_guard_imploperator= (const swap_guard_impl &)=delete
 
swap_guard_imploperator= (swap_guard_impl &&other)=delete
 
 swap_guard_impl (swap_guard_impl &&other) noexcept
 
 ~swap_guard_impl () noexcept
 
void cancel () noexcept
 
bool do_swap () noexcept
 Returns true if the swap occurred, otherwise false. More...
 

Constructor & Destructor Documentation

◆ swap_guard_impl() [1/3]

template<typename T >
VW::details::swap_guard_impl< T >::swap_guard_impl ( T *  original_location,
T *  value_to_swap 
)
inlinenoexcept

◆ swap_guard_impl() [2/3]

template<typename T >
VW::details::swap_guard_impl< T >::swap_guard_impl ( const swap_guard_impl< T > &  )
delete

◆ swap_guard_impl() [3/3]

template<typename T >
VW::details::swap_guard_impl< T >::swap_guard_impl ( swap_guard_impl< T > &&  other)
inlinenoexcept

◆ ~swap_guard_impl()

template<typename T >
VW::details::swap_guard_impl< T >::~swap_guard_impl ( )
inlinenoexcept

Member Function Documentation

◆ cancel()

template<typename T >
void VW::details::swap_guard_impl< T >::cancel ( )
inlinenoexcept

◆ do_swap()

template<typename T >
bool VW::details::swap_guard_impl< T >::do_swap ( )
inlinenoexcept

Returns true if the swap occurred, otherwise false.

◆ operator=() [1/2]

template<typename T >
swap_guard_impl & VW::details::swap_guard_impl< T >::operator= ( const swap_guard_impl< T > &  )
delete

◆ operator=() [2/2]

template<typename T >
swap_guard_impl & VW::details::swap_guard_impl< T >::operator= ( swap_guard_impl< T > &&  other)
delete

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