mlpack
Classes | Typedefs | Functions
sfinae_test.cpp File Reference
#include <mlpack/core.hpp>
#include <mlpack/core/util/sfinae_utility.hpp>
#include "catch.hpp"
Include dependency graph for sfinae_test.cpp:

Classes

class  A
 
class  B
 
class  C
 
class  WithFunctionModelA
 
class  WithFunctionModelB
 
class  WithOutFunctionModel
 
class  WithInheritedModelA
 

Typedefs

template<typename Class , typename... T>
using MForm1 = void(Class::*)(const arma::mat &, const arma::Row< size_t > &, T...)
 
template<typename Class , typename... T>
using MForm2 = void(Class::*)(const arma::mat &, const arma::rowvec &, T...)
 
template<typename Class , typename... T>
using MForm3 = void(Class::*)(const arma::mat &, const arma::rowvec &, const arma::rowvec &, T...)
 
template<typename Class , typename RT , typename... T>
using MForm4 = RT(Class::*)(const arma::mat &, const arma::rowvec &, T...)
 

Functions

 HAS_METHOD_FORM (M, HasM)
 
 HAS_METHOD_FORM (template M< arma::mat >, HasTemplatedM)
 
 HAS_METHOD_FORM (SINGLE_ARG(template M< arma::mat, arma::rowvec >), HasVeryTemplatedM)
 
 HAS_ANY_METHOD_FORM (Model, HasModel)
 
 TEST_CASE ("HasMethodFormWithNAdditionalArgsTest", "[SFINAETest]")
 
 TEST_CASE ("HasMethodFormTest", "[SFINAETest]")
 
 TEST_CASE ("HasMethodNameTest", "[SFINAETest]")
 

Detailed Description

Author
Kirill Mishchenko

Test file for SFINAE utilities.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.