C++ features by examples
Collaboration diagram for C++11 examples:

Modules

 Language
 
 Lambda
 
 More complex Lambdas
 
 Threads
 

Functions

void sig (int)
 
int main (void)
 

Detailed Description

https://en.wikipedia.org/wiki/C++11

https://github.com/AnthonyCalandra/modern-cpp-features/blob/master/CPP11.md

Function Documentation

◆ main()

int main ( void  )

Definition at line 697 of file 11.cpp.

698{
699 signal(SIGALRM, sig);
700 alarm(1);
702 init_11();
703 auto r = trailing_return_type(1);
704 (void) r;
708 func_11();
709 container_11();
710 algorithm_11();
711 sort_11();
713 static_assert(constexpr_factorial(4), "");
714
715 types_11();
716 threads_11();
717 mutex_11();
718
719 return 0;
720}
void sig(int)
Definition: 11.cpp:692
static void lambda_complex(void)
Definition: 11.cpp:531
static void lambda_basics(void)
Definition: 11.cpp:350
void container_11()
container
Definition: 11.cpp:444
void algorithm_11()
algorithm
Definition: 11.cpp:478
static void lambda_capture(void)
Definition: 11.cpp:411
void sort_11()
Compare with sort_03.
Definition: 11.cpp:487
void func_11()
Definition: 11.cpp:282
void types_11()
Definition: 11.cpp:32
void dynamic_memory_11()
Definition: 11.cpp:126
constexpr int constexpr_factorial(int n)
https://en.cppreference.com/w/cpp/language/constexpr
Definition: 11.cpp:310
void init_11()
Definition: 11.cpp:231
void references_11()
Definition: 11.cpp:186
auto trailing_return_type(int a) -> int
Definition: 11.cpp:268
void threads_11()
Definition: 11.cpp:589
void mutex_11()
Definition: 11.cpp:632
Here is the call graph for this function:

◆ sig()

void sig ( int  )

Definition at line 692 of file 11.cpp.

693{
694 abort();
695}
Here is the caller graph for this function: