is_swappable_with< T, U > Struct Template Reference

Static Public Member Functions

template
<
class
X
,
class
Y
>
static auto test (void *) noexcept(true) -> decltype(swap(declval< X &>(), declval< Y &>()))
 
template
<
class
,
class
>
static void test (...) noexcept(false)
 

Static Public Attributes

static constexpr bool value = noexcept(test<T, U>(nullptr))
 

Detailed Description


template
<
class
T
,
class
U
>

struct core::v2::impl::is_swappable_with< T, U >

Definition at line 63 of file internal.hpp.

Member Function Documentation

◆ test() [1/2]

static auto test ( void *  ) -> decltype(swap(declval< X &>(), declval< Y &>()))
staticnoexcept

◆ test() [2/2]

static void test (   ...)
staticnoexcept

Member Data Documentation

◆ value

constexpr bool value = noexcept(test<T, U>(nullptr))
static

Definition at line 72 of file internal.hpp.


The documentation for this struct was generated from the following file:
  • /home/jenkins-mlpack/mlpack.org/_src/mlpack-git/src/mlpack/core/std_backport/internal.hpp