C++ Library Extensions 2022.12.09
To help learn modern C++ programming
15-mixin.cpp File Reference
#include <tpf_output.hpp>
Include dependency graph for 15-mixin.cpp:

Go to the source code of this file.

Classes

struct  Point
 
struct  Circle
 
struct  Square
 
struct  Shape
 
struct  Mixin< BaseClasses >
 

Functions

void test_shape ()
 
template<typename... Shapes>
 Mixin (Shapes...) -> Mixin< Shapes... >
 
void test_mixin ()
 
int main ()
 

Variables

tpf::sstream stream
 
auto endl = tpf::endl
 
auto nl = tpf::nl
 

Function Documentation

◆ main()

int main ( )

Definition at line 100 of file 15-mixin.cpp.

Here is the call graph for this function:

◆ Mixin()

template<typename... Shapes>
Mixin ( Shapes...  ) -> Mixin< Shapes... >

◆ test_mixin()

void test_mixin ( )

Definition at line 93 of file 15-mixin.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_shape()

void test_shape ( )

Definition at line 56 of file 15-mixin.cpp.

Here is the call graph for this function:

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 4 of file 15-mixin.cpp.

◆ nl

auto nl = tpf::nl

Definition at line 5 of file 15-mixin.cpp.

◆ stream

tpf::sstream stream

Definition at line 3 of file 15-mixin.cpp.