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

Go to the source code of this file.

Typedefs

using stop_watch = tpf::chrono_random::stop_watch
 

Functions

template<typename ElementType >
void dynamic_allocation_test (size_t test_count, size_t element_count)
 
void benchmarking_new_vs_malloc ()
 
int main ()
 

Variables

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

Typedef Documentation

◆ stop_watch

Definition at line 13 of file 043-allocator.cpp.

Function Documentation

◆ benchmarking_new_vs_malloc()

void benchmarking_new_vs_malloc ( )

Definition at line 44 of file 043-allocator.cpp.

Here is the caller graph for this function:

◆ dynamic_allocation_test()

template<typename ElementType >
void dynamic_allocation_test ( size_t  test_count,
size_t  element_count 
)

Definition at line 17 of file 043-allocator.cpp.

Here is the call graph for this function:

◆ main()

int main ( )

Definition at line 49 of file 043-allocator.cpp.

Here is the call graph for this function:

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 11 of file 043-allocator.cpp.

◆ flush

auto flush = tpf::flush

Definition at line 10 of file 043-allocator.cpp.

◆ nl

auto nl = tpf::nl

Definition at line 8 of file 043-allocator.cpp.

◆ nL

auto nL = tpf::nL

Definition at line 9 of file 043-allocator.cpp.

◆ stream

tpf::sstream stream

Definition at line 6 of file 043-allocator.cpp.