├── .clang-format ├── .github └── workflows │ ├── apple-silicon.yml │ ├── x86-ubuntu.yml │ └── x86-windows.yml ├── .gitignore ├── CMakeLists.txt ├── LICENSE ├── README.md ├── include ├── cppt_ag.hpp.in ├── cppt_tools.hpp ├── deep_vs_shallow.hpp ├── memory_block.hpp ├── strings_pool.hpp └── strings_reverse.hpp ├── src ├── CMakeLists.txt ├── auto_vs_decltype_main.cpp ├── const_vs_constexpr_main.cpp ├── copy_and_swap_idiom_main.cpp ├── cppt_tools.cpp ├── deep_vs_shallow.cpp ├── deep_vs_shallow_main.cpp ├── delete_vs_default_main.cpp ├── init_aggregate_main.cpp ├── init_brace_elision_main.cpp ├── init_list_gotchas_main.cpp ├── init_stack_vs_global_vars_main.cpp ├── init_types_of_main.cpp ├── memory_block.cpp ├── memory_block_main.cpp ├── misc_main.cpp ├── noexcept_main.cpp ├── null_vs_nullptr_main.cpp ├── override_final_main.cpp ├── pointers_main.cpp ├── rvalue_vs_lvalue_main.cpp ├── rvo_main.cpp ├── set_new_handler_example.cpp ├── smart_pointers_main.cpp ├── static_assert_main.cpp ├── strings │ ├── CMakeLists.txt │ ├── strings_1_main.cpp │ ├── strings_2_main.cpp │ ├── strings_3_main.cpp │ ├── strings_pool.cpp │ ├── strings_pool_main.cpp │ └── strings_reverse.cpp ├── test.txt ├── type_casting_main.cpp ├── vector_main_1.cpp └── vector_main_2.cpp └── test ├── cpp_tutor_ut_main.cpp ├── tests_strings.cpp └── tests_strings_pool.cpp /.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/.clang-format -------------------------------------------------------------------------------- /.github/workflows/apple-silicon.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/.github/workflows/apple-silicon.yml -------------------------------------------------------------------------------- /.github/workflows/x86-ubuntu.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/.github/workflows/x86-ubuntu.yml -------------------------------------------------------------------------------- /.github/workflows/x86-windows.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/.github/workflows/x86-windows.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/.gitignore -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/README.md -------------------------------------------------------------------------------- /include/cppt_ag.hpp.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/include/cppt_ag.hpp.in -------------------------------------------------------------------------------- /include/cppt_tools.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/include/cppt_tools.hpp -------------------------------------------------------------------------------- /include/deep_vs_shallow.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/include/deep_vs_shallow.hpp -------------------------------------------------------------------------------- /include/memory_block.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/include/memory_block.hpp -------------------------------------------------------------------------------- /include/strings_pool.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/include/strings_pool.hpp -------------------------------------------------------------------------------- /include/strings_reverse.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/include/strings_reverse.hpp -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(strings) 2 | -------------------------------------------------------------------------------- /src/auto_vs_decltype_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/auto_vs_decltype_main.cpp -------------------------------------------------------------------------------- /src/const_vs_constexpr_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/const_vs_constexpr_main.cpp -------------------------------------------------------------------------------- /src/copy_and_swap_idiom_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/copy_and_swap_idiom_main.cpp -------------------------------------------------------------------------------- /src/cppt_tools.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/cppt_tools.cpp -------------------------------------------------------------------------------- /src/deep_vs_shallow.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/deep_vs_shallow.cpp -------------------------------------------------------------------------------- /src/deep_vs_shallow_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/deep_vs_shallow_main.cpp -------------------------------------------------------------------------------- /src/delete_vs_default_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/delete_vs_default_main.cpp -------------------------------------------------------------------------------- /src/init_aggregate_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/init_aggregate_main.cpp -------------------------------------------------------------------------------- /src/init_brace_elision_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/init_brace_elision_main.cpp -------------------------------------------------------------------------------- /src/init_list_gotchas_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/init_list_gotchas_main.cpp -------------------------------------------------------------------------------- /src/init_stack_vs_global_vars_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/init_stack_vs_global_vars_main.cpp -------------------------------------------------------------------------------- /src/init_types_of_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/init_types_of_main.cpp -------------------------------------------------------------------------------- /src/memory_block.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/memory_block.cpp -------------------------------------------------------------------------------- /src/memory_block_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/memory_block_main.cpp -------------------------------------------------------------------------------- /src/misc_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/misc_main.cpp -------------------------------------------------------------------------------- /src/noexcept_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/noexcept_main.cpp -------------------------------------------------------------------------------- /src/null_vs_nullptr_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/null_vs_nullptr_main.cpp -------------------------------------------------------------------------------- /src/override_final_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/override_final_main.cpp -------------------------------------------------------------------------------- /src/pointers_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/pointers_main.cpp -------------------------------------------------------------------------------- /src/rvalue_vs_lvalue_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/rvalue_vs_lvalue_main.cpp -------------------------------------------------------------------------------- /src/rvo_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/rvo_main.cpp -------------------------------------------------------------------------------- /src/set_new_handler_example.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/set_new_handler_example.cpp -------------------------------------------------------------------------------- /src/smart_pointers_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/smart_pointers_main.cpp -------------------------------------------------------------------------------- /src/static_assert_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/static_assert_main.cpp -------------------------------------------------------------------------------- /src/strings/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/strings/CMakeLists.txt -------------------------------------------------------------------------------- /src/strings/strings_1_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/strings/strings_1_main.cpp -------------------------------------------------------------------------------- /src/strings/strings_2_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/strings/strings_2_main.cpp -------------------------------------------------------------------------------- /src/strings/strings_3_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/strings/strings_3_main.cpp -------------------------------------------------------------------------------- /src/strings/strings_pool.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/strings/strings_pool.cpp -------------------------------------------------------------------------------- /src/strings/strings_pool_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/strings/strings_pool_main.cpp -------------------------------------------------------------------------------- /src/strings/strings_reverse.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/strings/strings_reverse.cpp -------------------------------------------------------------------------------- /src/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/test.txt -------------------------------------------------------------------------------- /src/type_casting_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/type_casting_main.cpp -------------------------------------------------------------------------------- /src/vector_main_1.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/vector_main_1.cpp -------------------------------------------------------------------------------- /src/vector_main_2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/src/vector_main_2.cpp -------------------------------------------------------------------------------- /test/cpp_tutor_ut_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/test/cpp_tutor_ut_main.cpp -------------------------------------------------------------------------------- /test/tests_strings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/test/tests_strings.cpp -------------------------------------------------------------------------------- /test/tests_strings_pool.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banach-space/cpp-tutor/HEAD/test/tests_strings_pool.cpp --------------------------------------------------------------------------------