File: test_has_mem_fun_template.hpp

package info (click to toggle)
boost1.74 1.74.0-9
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 464,084 kB
  • sloc: cpp: 3,338,324; xml: 131,293; python: 33,088; ansic: 14,336; asm: 4,034; sh: 3,351; makefile: 1,193; perl: 1,036; yacc: 478; php: 212; ruby: 102; lisp: 24; sql: 13; csh: 6
file content (59 lines) | stat: -rw-r--r-- 2,712 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59

//  (C) Copyright Edward Diener 2019
//  Use, modification and distribution are subject to the Boost Software License,
//  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt).

#if !defined(TEST_HAS_MEM_FUN_TEMPLATE_HPP)
#define TEST_HAS_MEM_FUN_TEMPLATE_HPP

#include "test_structs.hpp"
#include <boost/tti/has_member_function_template.hpp>

#if BOOST_PP_VARIADICS

BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE(SomeFuncTemplate,int,long,double,50)
BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION_TEMPLATE(SameName,AFuncTemplate,int,int,float)
BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE(AFuncTemplate,long,9983)
BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION_TEMPLATE(AnotherName,MyFuncTemplate,bool)

BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE(someFunctionMemberTemplate,short,int) // does not exist anywhere

BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION_TEMPLATE(FTD,FTHasDef,int) // default parameter

BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION_TEMPLATE(FirstCMFT,AConstFunctionTemplate,short,long) // const
BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE(WFunctionTmp,int,long,bool) // const

BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE(AVolatileFT,float) // volatile
BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION_TEMPLATE(VolG,VolFTem,long,44) // volatile

BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE(VWithDefault,46389) // volatile default parameter

BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION_TEMPLATE(ACV,ACVFunTemplate,int,short) // const volatile
BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE(ConstVolTTFun,8764) // const volatile

#else

BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE(SomeFuncTemplate,(4,(int,long,double,50)))
BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION_TEMPLATE(SameName,AFuncTemplate,(3,(int,int,float)))
BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE(AFuncTemplate,(2,(long,9983)))
BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION_TEMPLATE(AnotherName,MyFuncTemplate,(1,(bool)))

BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE(someFunctionMemberTemplate,(2,(short,int))) // does not exist anywhere

BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION_TEMPLATE(FTD,FTHasDef,(1,(int))) // default parameter

BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION_TEMPLATE(FirstCMFT,AConstFunctionTemplate,(2,(short,long))) // const
BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE(WFunctionTmp,(3,(int,long,bool))) // const

BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE(AVolatileFT,(1,(float))) // volatile
BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION_TEMPLATE(VolG,VolFTem,(2,(long,44))) // volatile

BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE(VWithDefault,(1,(46389))) // volatile default parameter

BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION_TEMPLATE(ACV,ACVFunTemplate,(2,(int,short))) // const volatile
BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE(ConstVolTTFun,(1,(8764))) // const volatile

#endif

#endif // TEST_HAS_MEM_FUN_TEMPLATE_HPP