C++ Library Extensions 2022.12.09
To help learn modern C++ programming
TypeA< ElementTypeA > Class Template Reference

Public Member Functions

template<typename ElementTypeB >
void operation_over_type_b (TypeB< ElementTypeB > b)
 
 TypeA (ElementTypeA v=ElementTypeA{})
 
template<typename ElementType >
void operation_over_type_b (TypeB< ElementType > b)
 
template<typename Type >
auto sum (Type a, Type b)
 

Static Public Member Functions

template<typename Type , typename... Types>
static auto summation (Type first, Types... args)
 

Friends

template<typename ElementTypeB >
class TypeB
 
template<typename ElementType >
class TypeB
 

Detailed Description

template<typename ElementTypeA>
class TypeA< ElementTypeA >

Definition at line 6 of file 042-partial_type.cpp.

Constructor & Destructor Documentation

◆ TypeA()

template<typename ElementTypeA >
TypeA< ElementTypeA >::TypeA ( ElementTypeA< ElementTypeA >  v = ElementTypeA< ElementTypeA >{})
inline

Definition at line 40 of file 025-template_members.cpp.

Member Function Documentation

◆ operation_over_type_b() [1/2]

template<typename ElementTypeA >
template<typename ElementType >
void TypeA< ElementTypeA >::operation_over_type_b ( TypeB< ElementType >  b)
inline

Definition at line 45 of file 025-template_members.cpp.

◆ operation_over_type_b() [2/2]

template<typename ElementTypeA >
template<typename ElementTypeB >
void TypeA< ElementTypeA >::operation_over_type_b ( TypeB< ElementTypeB >  b)

Definition at line 39 of file 042-partial_type.cpp.

Here is the caller graph for this function:

◆ sum()

template<typename ElementTypeA >
template<typename Type >
auto TypeA< ElementTypeA >::sum ( Type  a,
Type  b 
)

Definition at line 98 of file 025-template_members.cpp.

Here is the caller graph for this function:

◆ summation()

template<typename ElementTypeA >
template<typename Type , typename... Types>
static auto TypeA< ElementTypeA >::summation ( Type  first,
Types...  args 
)
inlinestatic

Definition at line 55 of file 025-template_members.cpp.

Friends And Related Function Documentation

◆ TypeB [1/2]

template<typename ElementTypeA >
template<typename ElementTypeB >
friend class TypeB
friend

Definition at line 8 of file 042-partial_type.cpp.

◆ TypeB [2/2]

template<typename ElementTypeA >
template<typename ElementType >
class TypeB
friend

Definition at line 34 of file 025-template_members.cpp.


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