what is template value type? value_type of the template is the type of template type for example if you have std::vector<int> the
C++ 20 (general subjects)
span array structure binding Initialize variables within if and switch statements Use template argument deduction for simplicity and clarity Use if constexpr
build GCC and G++
1- clone GCC repository 2- add select branch 3- in the source folder you will find ./contrib/download_prerequisites execute it to download dependencies
C++ GMock
add it to cmake Matchers expect call
C++ GTest
install GTest with CMake https://google.github.io/googletest/quickstart-cmake.html first example EXPECT AND ASSERT ASSERT: Fails fast, aborting the current function. EXPECT: Continues after the failure.
Mastering CMake (2)
Setting Up Your First CMake Project Working with Targets Essentially, it’s a recipe that a buildsystem uses to compile a list of
Mastering CMake (1)
Command Lines Generating a project buildsystem choose generatorThis can be overridden by the CMAKE_GENERATOR environment variable or by specifying the generator directly on the
Debian based ssh
install ssh server configure firewall and enable port 22 add putty key Now, you need to paste the copied public key in
Conan C++ Package Manager
install conan looking for library poco/1.8.1 poco/1.9.3 poco/1.9.4 creating a conanfile.txt inside our project’s folder with the following content: Next step: We are going
C Libraries
stdlib double atof(const char *str)Converts the string pointed to, by the argument str to a floating-point number (type double). int atoi(const char *str)Converts the
TypeScript
install and config with npm add scripts to package.json build script convert all ts files to js and move it to ./dist
ubuntu C++ configurations
build-essential : tools and libraries that are required to compile a program. For example, if you need to work on a C/C++
Conic Sections
Common Parts of Conic Sections A focus is a point about which the conic section is constructed. In other words, it is
Math Problems 1
Problem 1 what is the area of the rectangle? the minimum area of the triangle satisfied these conditions? part 1 so the
C++ Useful Libraries
random standard c++ library simd library( single instruction multiple data) C++ wrappers for SIMD intrinsics and parallelized, optimized mathematical functions (SSE, AVX,
Tree Traversals
Depth-First Search and Breadth-First Search Binary Tree Traversals Arithmetic Expression Tree after that we can calculate the tree by postfix or post-order