├── .gitignore ├── README.md └── examples ├── LICENSE ├── chapter 1 - basics ├── ex 1 1 simple car info.cpp ├── ex 1 2 setting to zero.cpp ├── ex 1 3 aggregates.cpp ├── ex 1 4 aggregates car info.cpp └── ex 1 5 default member init.cpp ├── chapter 10 - non-regular data members ├── ex 10 1 constant data member.cpp ├── ex 10 2 raw pointer as data member.cpp ├── ex 10 3 unique_ptr as data member.cpp ├── ex 10 5 shared_ptr as data member.cpp ├── ex 10 6 reference as data member.cpp ├── ex 10 7 reference_wrapper as data member.cpp └── ex 10 8 showing basic props.cpp ├── chapter 11 - non-local ├── ex 11 1 static and automatic.cpp ├── ex 11 4 thread_local.cpp ├── ex 11 5 beging and end of a thread_local.cpp ├── ex 11 6 static initialization.cpp └── ex 11 8 constinit pair.cpp ├── chapter 12 - aggregates ├── ex 12 1 aggregate classes several examples.cpp ├── ex 12 2 brace elision.cpp ├── ex 12 3 initialization with round parens.cpp ├── ex 12 4 make_unique.cpp ├── ex 12 5 emplace.cpp ├── ex 12 6 designated init demo.cpp └── ex 12 7 json like.cpp ├── chapter 13 - techniques ├── ex 13 1 strong types.cpp ├── ex 13 2 optional introduction.cpp ├── ex 13 3 instance counter.cpp ├── ex 13 4 crtp instance counter.cpp ├── ex 13 5 multiple initializations.cpp └── ex 13 6 singleton.cpp ├── chapter 14 - exercises ├── ex_1_point_test.cpp ├── ex_2_sales_record.cpp ├── ex_3_counted_type.h ├── ex_3_counted_type_main.cpp └── ex_4_sales_fix.cpp ├── chapter 2 - constructors ├── ex 2 1 simple data packet class.cpp ├── ex 2 10 implicit conversions.cpp ├── ex 2 2 value init for data packet.cpp ├── ex 2 3 constructor for product.cpp ├── ex 2 4 most vexing parse error.cpp ├── ex 2 5 multiple arguments and braces.cpp ├── ex 2 6 logging in constructors.cpp ├── ex 2 7 adding constructors to packet.cpp ├── ex 2 8 implicit default constructor.cpp └── ex 2 9 default and delete constructors.cpp ├── chapter 3 - copy and move ├── ex 3 1 logging in copy constructor.cpp ├── ex 3 10 logging in data packet.cpp ├── ex 3 2 named copy elision.cpp ├── ex 3 3 copy elision cpp17.cpp ├── ex 3 4 non default copy constructor.cpp ├── ex 3 5 move constructor.cpp ├── ex 3 6 copy on vec resize.cpp ├── ex 3 7 move on vec resize.cpp ├── ex 3 8 copy assignment for product.cpp └── ex 3 9 move assignment for product.cpp ├── chapter 4 - delegating and inheriting constructors ├── ex 4 1 delegating constructors.cpp ├── ex 4 2 inheritance.cpp ├── ex 4 3 base class constructor order.cpp ├── ex 4 4 inheriting constructors.cpp └── ex 4 5 inheriting constructors and protected section.cpp ├── chapter 5 - destructor ├── ex 5 1 logging destructor.cpp ├── ex 5 2 nested destructor calls.cpp ├── ex 5 3 a pointer member.cpp ├── ex 5 4 virtual destructor.cpp ├── ex 5 5 partial object creation.cpp ├── ex 5 6 a memory leak.cpp ├── ex 5 7 fixing memory leak.cpp └── ex 5 8 compiler generated destructor.cpp ├── chapter 6 - type deduction ├── ex 6 1 trying a correct type for map elements.cpp ├── ex 6 2 printing type info.cpp ├── ex 6 3 iterating through map structured binding.cpp └── ex 6 4 loops and ub.cpp ├── chapter 8 - nsdmi ├── ex 8 1 nsdmi basics.cpp ├── ex 8 10 direct initialization and parens.cpp ├── ex 8 2 basics of initialization.cpp ├── ex 8 3 calling init functions.cpp ├── ex 8 4 various nsdmi syntax.cpp ├── ex 8 5 dependency in initializers.cpp ├── ex 8 6 copy constructors and nsdmi.cpp ├── ex 8 7 move constructors and nsdmi.cpp ├── ex 8 8 aggregates and nsdmi.cpp └── ex 8 9 bit fields and nsdmi.cpp └── chapter 9 - containers ├── ex 9 1 basic syntax.cpp ├── ex 9 10 initialization from a list of unique_ptr.cpp ├── ex 9 2 containers and nsdmi.cpp ├── ex 9 3 function taking initializer_list.cpp ├── ex 9 4 constructor taking initializer_list.cpp ├── ex 9 5 package class demo.cpp ├── ex 9 6 package class with initializer_list.cpp ├── ex 9 7 extra copy with initializer_list.cpp ├── ex 9 8 trying to pass unique_ptr.cpp └── ex 9 9 variadic function template.cpp /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/README.md -------------------------------------------------------------------------------- /examples/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/LICENSE -------------------------------------------------------------------------------- /examples/chapter 1 - basics/ex 1 1 simple car info.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 1 - basics/ex 1 1 simple car info.cpp -------------------------------------------------------------------------------- /examples/chapter 1 - basics/ex 1 2 setting to zero.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 1 - basics/ex 1 2 setting to zero.cpp -------------------------------------------------------------------------------- /examples/chapter 1 - basics/ex 1 3 aggregates.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 1 - basics/ex 1 3 aggregates.cpp -------------------------------------------------------------------------------- /examples/chapter 1 - basics/ex 1 4 aggregates car info.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 1 - basics/ex 1 4 aggregates car info.cpp -------------------------------------------------------------------------------- /examples/chapter 1 - basics/ex 1 5 default member init.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 1 - basics/ex 1 5 default member init.cpp -------------------------------------------------------------------------------- /examples/chapter 10 - non-regular data members/ex 10 1 constant data member.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 10 - non-regular data members/ex 10 1 constant data member.cpp -------------------------------------------------------------------------------- /examples/chapter 10 - non-regular data members/ex 10 2 raw pointer as data member.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 10 - non-regular data members/ex 10 2 raw pointer as data member.cpp -------------------------------------------------------------------------------- /examples/chapter 10 - non-regular data members/ex 10 3 unique_ptr as data member.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 10 - non-regular data members/ex 10 3 unique_ptr as data member.cpp -------------------------------------------------------------------------------- /examples/chapter 10 - non-regular data members/ex 10 5 shared_ptr as data member.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 10 - non-regular data members/ex 10 5 shared_ptr as data member.cpp -------------------------------------------------------------------------------- /examples/chapter 10 - non-regular data members/ex 10 6 reference as data member.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 10 - non-regular data members/ex 10 6 reference as data member.cpp -------------------------------------------------------------------------------- /examples/chapter 10 - non-regular data members/ex 10 7 reference_wrapper as data member.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 10 - non-regular data members/ex 10 7 reference_wrapper as data member.cpp -------------------------------------------------------------------------------- /examples/chapter 10 - non-regular data members/ex 10 8 showing basic props.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 10 - non-regular data members/ex 10 8 showing basic props.cpp -------------------------------------------------------------------------------- /examples/chapter 11 - non-local/ex 11 1 static and automatic.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 11 - non-local/ex 11 1 static and automatic.cpp -------------------------------------------------------------------------------- /examples/chapter 11 - non-local/ex 11 4 thread_local.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 11 - non-local/ex 11 4 thread_local.cpp -------------------------------------------------------------------------------- /examples/chapter 11 - non-local/ex 11 5 beging and end of a thread_local.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 11 - non-local/ex 11 5 beging and end of a thread_local.cpp -------------------------------------------------------------------------------- /examples/chapter 11 - non-local/ex 11 6 static initialization.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 11 - non-local/ex 11 6 static initialization.cpp -------------------------------------------------------------------------------- /examples/chapter 11 - non-local/ex 11 8 constinit pair.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 11 - non-local/ex 11 8 constinit pair.cpp -------------------------------------------------------------------------------- /examples/chapter 12 - aggregates/ex 12 1 aggregate classes several examples.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 12 - aggregates/ex 12 1 aggregate classes several examples.cpp -------------------------------------------------------------------------------- /examples/chapter 12 - aggregates/ex 12 2 brace elision.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 12 - aggregates/ex 12 2 brace elision.cpp -------------------------------------------------------------------------------- /examples/chapter 12 - aggregates/ex 12 3 initialization with round parens.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 12 - aggregates/ex 12 3 initialization with round parens.cpp -------------------------------------------------------------------------------- /examples/chapter 12 - aggregates/ex 12 4 make_unique.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 12 - aggregates/ex 12 4 make_unique.cpp -------------------------------------------------------------------------------- /examples/chapter 12 - aggregates/ex 12 5 emplace.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 12 - aggregates/ex 12 5 emplace.cpp -------------------------------------------------------------------------------- /examples/chapter 12 - aggregates/ex 12 6 designated init demo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 12 - aggregates/ex 12 6 designated init demo.cpp -------------------------------------------------------------------------------- /examples/chapter 12 - aggregates/ex 12 7 json like.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 12 - aggregates/ex 12 7 json like.cpp -------------------------------------------------------------------------------- /examples/chapter 13 - techniques/ex 13 1 strong types.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 13 - techniques/ex 13 1 strong types.cpp -------------------------------------------------------------------------------- /examples/chapter 13 - techniques/ex 13 2 optional introduction.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 13 - techniques/ex 13 2 optional introduction.cpp -------------------------------------------------------------------------------- /examples/chapter 13 - techniques/ex 13 3 instance counter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 13 - techniques/ex 13 3 instance counter.cpp -------------------------------------------------------------------------------- /examples/chapter 13 - techniques/ex 13 4 crtp instance counter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 13 - techniques/ex 13 4 crtp instance counter.cpp -------------------------------------------------------------------------------- /examples/chapter 13 - techniques/ex 13 5 multiple initializations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 13 - techniques/ex 13 5 multiple initializations.cpp -------------------------------------------------------------------------------- /examples/chapter 13 - techniques/ex 13 6 singleton.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 13 - techniques/ex 13 6 singleton.cpp -------------------------------------------------------------------------------- /examples/chapter 14 - exercises/ex_1_point_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 14 - exercises/ex_1_point_test.cpp -------------------------------------------------------------------------------- /examples/chapter 14 - exercises/ex_2_sales_record.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 14 - exercises/ex_2_sales_record.cpp -------------------------------------------------------------------------------- /examples/chapter 14 - exercises/ex_3_counted_type.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 14 - exercises/ex_3_counted_type.h -------------------------------------------------------------------------------- /examples/chapter 14 - exercises/ex_3_counted_type_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 14 - exercises/ex_3_counted_type_main.cpp -------------------------------------------------------------------------------- /examples/chapter 14 - exercises/ex_4_sales_fix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 14 - exercises/ex_4_sales_fix.cpp -------------------------------------------------------------------------------- /examples/chapter 2 - constructors/ex 2 1 simple data packet class.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 2 - constructors/ex 2 1 simple data packet class.cpp -------------------------------------------------------------------------------- /examples/chapter 2 - constructors/ex 2 10 implicit conversions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 2 - constructors/ex 2 10 implicit conversions.cpp -------------------------------------------------------------------------------- /examples/chapter 2 - constructors/ex 2 2 value init for data packet.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 2 - constructors/ex 2 2 value init for data packet.cpp -------------------------------------------------------------------------------- /examples/chapter 2 - constructors/ex 2 3 constructor for product.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 2 - constructors/ex 2 3 constructor for product.cpp -------------------------------------------------------------------------------- /examples/chapter 2 - constructors/ex 2 4 most vexing parse error.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 2 - constructors/ex 2 4 most vexing parse error.cpp -------------------------------------------------------------------------------- /examples/chapter 2 - constructors/ex 2 5 multiple arguments and braces.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 2 - constructors/ex 2 5 multiple arguments and braces.cpp -------------------------------------------------------------------------------- /examples/chapter 2 - constructors/ex 2 6 logging in constructors.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 2 - constructors/ex 2 6 logging in constructors.cpp -------------------------------------------------------------------------------- /examples/chapter 2 - constructors/ex 2 7 adding constructors to packet.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 2 - constructors/ex 2 7 adding constructors to packet.cpp -------------------------------------------------------------------------------- /examples/chapter 2 - constructors/ex 2 8 implicit default constructor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 2 - constructors/ex 2 8 implicit default constructor.cpp -------------------------------------------------------------------------------- /examples/chapter 2 - constructors/ex 2 9 default and delete constructors.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 2 - constructors/ex 2 9 default and delete constructors.cpp -------------------------------------------------------------------------------- /examples/chapter 3 - copy and move/ex 3 1 logging in copy constructor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 3 - copy and move/ex 3 1 logging in copy constructor.cpp -------------------------------------------------------------------------------- /examples/chapter 3 - copy and move/ex 3 10 logging in data packet.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 3 - copy and move/ex 3 10 logging in data packet.cpp -------------------------------------------------------------------------------- /examples/chapter 3 - copy and move/ex 3 2 named copy elision.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 3 - copy and move/ex 3 2 named copy elision.cpp -------------------------------------------------------------------------------- /examples/chapter 3 - copy and move/ex 3 3 copy elision cpp17.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 3 - copy and move/ex 3 3 copy elision cpp17.cpp -------------------------------------------------------------------------------- /examples/chapter 3 - copy and move/ex 3 4 non default copy constructor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 3 - copy and move/ex 3 4 non default copy constructor.cpp -------------------------------------------------------------------------------- /examples/chapter 3 - copy and move/ex 3 5 move constructor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 3 - copy and move/ex 3 5 move constructor.cpp -------------------------------------------------------------------------------- /examples/chapter 3 - copy and move/ex 3 6 copy on vec resize.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 3 - copy and move/ex 3 6 copy on vec resize.cpp -------------------------------------------------------------------------------- /examples/chapter 3 - copy and move/ex 3 7 move on vec resize.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 3 - copy and move/ex 3 7 move on vec resize.cpp -------------------------------------------------------------------------------- /examples/chapter 3 - copy and move/ex 3 8 copy assignment for product.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 3 - copy and move/ex 3 8 copy assignment for product.cpp -------------------------------------------------------------------------------- /examples/chapter 3 - copy and move/ex 3 9 move assignment for product.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 3 - copy and move/ex 3 9 move assignment for product.cpp -------------------------------------------------------------------------------- /examples/chapter 4 - delegating and inheriting constructors/ex 4 1 delegating constructors.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 4 - delegating and inheriting constructors/ex 4 1 delegating constructors.cpp -------------------------------------------------------------------------------- /examples/chapter 4 - delegating and inheriting constructors/ex 4 2 inheritance.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 4 - delegating and inheriting constructors/ex 4 2 inheritance.cpp -------------------------------------------------------------------------------- /examples/chapter 4 - delegating and inheriting constructors/ex 4 3 base class constructor order.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 4 - delegating and inheriting constructors/ex 4 3 base class constructor order.cpp -------------------------------------------------------------------------------- /examples/chapter 4 - delegating and inheriting constructors/ex 4 4 inheriting constructors.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 4 - delegating and inheriting constructors/ex 4 4 inheriting constructors.cpp -------------------------------------------------------------------------------- /examples/chapter 4 - delegating and inheriting constructors/ex 4 5 inheriting constructors and protected section.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 4 - delegating and inheriting constructors/ex 4 5 inheriting constructors and protected section.cpp -------------------------------------------------------------------------------- /examples/chapter 5 - destructor/ex 5 1 logging destructor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 5 - destructor/ex 5 1 logging destructor.cpp -------------------------------------------------------------------------------- /examples/chapter 5 - destructor/ex 5 2 nested destructor calls.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 5 - destructor/ex 5 2 nested destructor calls.cpp -------------------------------------------------------------------------------- /examples/chapter 5 - destructor/ex 5 3 a pointer member.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 5 - destructor/ex 5 3 a pointer member.cpp -------------------------------------------------------------------------------- /examples/chapter 5 - destructor/ex 5 4 virtual destructor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 5 - destructor/ex 5 4 virtual destructor.cpp -------------------------------------------------------------------------------- /examples/chapter 5 - destructor/ex 5 5 partial object creation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 5 - destructor/ex 5 5 partial object creation.cpp -------------------------------------------------------------------------------- /examples/chapter 5 - destructor/ex 5 6 a memory leak.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 5 - destructor/ex 5 6 a memory leak.cpp -------------------------------------------------------------------------------- /examples/chapter 5 - destructor/ex 5 7 fixing memory leak.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 5 - destructor/ex 5 7 fixing memory leak.cpp -------------------------------------------------------------------------------- /examples/chapter 5 - destructor/ex 5 8 compiler generated destructor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 5 - destructor/ex 5 8 compiler generated destructor.cpp -------------------------------------------------------------------------------- /examples/chapter 6 - type deduction/ex 6 1 trying a correct type for map elements.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 6 - type deduction/ex 6 1 trying a correct type for map elements.cpp -------------------------------------------------------------------------------- /examples/chapter 6 - type deduction/ex 6 2 printing type info.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 6 - type deduction/ex 6 2 printing type info.cpp -------------------------------------------------------------------------------- /examples/chapter 6 - type deduction/ex 6 3 iterating through map structured binding.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 6 - type deduction/ex 6 3 iterating through map structured binding.cpp -------------------------------------------------------------------------------- /examples/chapter 6 - type deduction/ex 6 4 loops and ub.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 6 - type deduction/ex 6 4 loops and ub.cpp -------------------------------------------------------------------------------- /examples/chapter 8 - nsdmi/ex 8 1 nsdmi basics.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 8 - nsdmi/ex 8 1 nsdmi basics.cpp -------------------------------------------------------------------------------- /examples/chapter 8 - nsdmi/ex 8 10 direct initialization and parens.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 8 - nsdmi/ex 8 10 direct initialization and parens.cpp -------------------------------------------------------------------------------- /examples/chapter 8 - nsdmi/ex 8 2 basics of initialization.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 8 - nsdmi/ex 8 2 basics of initialization.cpp -------------------------------------------------------------------------------- /examples/chapter 8 - nsdmi/ex 8 3 calling init functions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 8 - nsdmi/ex 8 3 calling init functions.cpp -------------------------------------------------------------------------------- /examples/chapter 8 - nsdmi/ex 8 4 various nsdmi syntax.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 8 - nsdmi/ex 8 4 various nsdmi syntax.cpp -------------------------------------------------------------------------------- /examples/chapter 8 - nsdmi/ex 8 5 dependency in initializers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 8 - nsdmi/ex 8 5 dependency in initializers.cpp -------------------------------------------------------------------------------- /examples/chapter 8 - nsdmi/ex 8 6 copy constructors and nsdmi.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 8 - nsdmi/ex 8 6 copy constructors and nsdmi.cpp -------------------------------------------------------------------------------- /examples/chapter 8 - nsdmi/ex 8 7 move constructors and nsdmi.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 8 - nsdmi/ex 8 7 move constructors and nsdmi.cpp -------------------------------------------------------------------------------- /examples/chapter 8 - nsdmi/ex 8 8 aggregates and nsdmi.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 8 - nsdmi/ex 8 8 aggregates and nsdmi.cpp -------------------------------------------------------------------------------- /examples/chapter 8 - nsdmi/ex 8 9 bit fields and nsdmi.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 8 - nsdmi/ex 8 9 bit fields and nsdmi.cpp -------------------------------------------------------------------------------- /examples/chapter 9 - containers/ex 9 1 basic syntax.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 9 - containers/ex 9 1 basic syntax.cpp -------------------------------------------------------------------------------- /examples/chapter 9 - containers/ex 9 10 initialization from a list of unique_ptr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 9 - containers/ex 9 10 initialization from a list of unique_ptr.cpp -------------------------------------------------------------------------------- /examples/chapter 9 - containers/ex 9 2 containers and nsdmi.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 9 - containers/ex 9 2 containers and nsdmi.cpp -------------------------------------------------------------------------------- /examples/chapter 9 - containers/ex 9 3 function taking initializer_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 9 - containers/ex 9 3 function taking initializer_list.cpp -------------------------------------------------------------------------------- /examples/chapter 9 - containers/ex 9 4 constructor taking initializer_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 9 - containers/ex 9 4 constructor taking initializer_list.cpp -------------------------------------------------------------------------------- /examples/chapter 9 - containers/ex 9 5 package class demo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 9 - containers/ex 9 5 package class demo.cpp -------------------------------------------------------------------------------- /examples/chapter 9 - containers/ex 9 6 package class with initializer_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 9 - containers/ex 9 6 package class with initializer_list.cpp -------------------------------------------------------------------------------- /examples/chapter 9 - containers/ex 9 7 extra copy with initializer_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 9 - containers/ex 9 7 extra copy with initializer_list.cpp -------------------------------------------------------------------------------- /examples/chapter 9 - containers/ex 9 8 trying to pass unique_ptr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 9 - containers/ex 9 8 trying to pass unique_ptr.cpp -------------------------------------------------------------------------------- /examples/chapter 9 - containers/ex 9 9 variadic function template.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenbf/cppinitbook_public/HEAD/examples/chapter 9 - containers/ex 9 9 variadic function template.cpp --------------------------------------------------------------------------------