GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - keineahnung2345/cpp-code-snippets: Some useful C++ code snippets

BranchesTags
Open more actions menu

Latest commit

 

History

855 Commits
855 Commits

Folders and files

NameName
Last commit message
Last commit date
Cartographer
Cartographer
 
 
Eigen
Eigen
 
 
GoogleTest
GoogleTest
 
 
OpenNI2
OpenNI2
 
 
ROS
ROS
 
 
VTK
VTK
 
 
base64_encoding
base64_encoding
 
 
boost
boost
 
 
ceres
ceres
 
 
clang-format
clang-format
 
 
cpr
cpr
 
 
crow
crow
 
 
dlib
dlib
 
 
editorconfig
editorconfig
 
 
extern
extern
 
 
flann
flann
 
 
g2o
g2o
 
 
glog
glog
 
 
libconfig
libconfig
 
 
macro
macro
 
 
mysql_connector
mysql_connector
 
 
nlohmann_json
nlohmann_json
 
 
opencv
opencv
 
 
pangolin
pangolin
 
 
pcl
pcl
 
 
protobuf
protobuf
 
 
qhull
qhull
 
 
qt
qt
 
 
rapidcsv
rapidcsv
 
 
realsense2
realsense2
 
 
sophus
sophus
 
 
spdlog
spdlog
 
 
template
template
 
 
template_metaprogramming
template_metaprogramming
 
 
thread
thread
 
 
tinyxml2
tinyxml2
 
 
windows
windows
 
 
0_int_long_float_double.cpp
0_int_long_float_double.cpp
 
 
NULL_nullptr.cpp
NULL_nullptr.cpp
 
 
RAII.cpp
RAII.cpp
 
 
README.md
README.md
 
 
advance.cpp
advance.cpp
 
 
advance_next_prev.cpp
advance_next_prev.cpp
 
 
any_of_all_of.cpp
any_of_all_of.cpp
 
 
array_length.cpp
array_length.cpp
 
 
assert.cpp
assert.cpp
 
 
assert_with_custom_message.cpp
assert_with_custom_message.cpp
 
 
atomic.cpp
atomic.cpp
 
 
backtrace.c
backtrace.c
 
 
bit_length.cpp
bit_length.cpp
 
 
bitset.cpp
bitset.cpp
 
 
bitset_rightmost_set_bit.cpp
bitset_rightmost_set_bit.cpp
 
 
call_parent_function.cpp
call_parent_function.cpp
 
 
change_directory.cpp
change_directory.cpp
 
 
char_star_append_char.c
char_star_append_char.c
 
 
char_star_find(contain)_nth_substr.c
char_star_find(contain)_nth_substr.c
 
 
char_star_split(strtok).c
char_star_split(strtok).c
 
 
char_star_substr.c
char_star_substr.c
 
 
combination.cpp
combination.cpp
 
 
combination_count.cpp
combination_count.cpp
 
 
combination_count_pascal_triangle.cpp
combination_count_pascal_triangle.cpp
 
 
complex.cpp
complex.cpp
 
 
const_cast.cpp
const_cast.cpp
 
 
const_return_value.cpp
const_return_value.cpp
 
 
container_value_type.cpp
container_value_type.cpp
 
 
copy_if_python_filter.cpp
copy_if_python_filter.cpp
 
 
copy_vector_to_array.cpp
copy_vector_to_array.cpp
 
 
count_if.cpp
count_if.cpp
 
 
count_set_bits.cpp
count_set_bits.cpp
 
 
cout_container.cpp
cout_container.cpp
 
 
cout_vector.cpp
cout_vector.cpp
 
 
crc32.cpp
crc32.cpp
 
 
csv_read_write.cpp
csv_read_write.cpp
 
 
declare_as_reference.cpp
declare_as_reference.cpp
 
 
declare_multiple_int_in_one_line.cpp
declare_multiple_int_in_one_line.cpp
 
 
default_move_copy_constructor.cpp
default_move_copy_constructor.cpp
 
 
define_multiple_variables.cpp
define_multiple_variables.cpp
 
 
delete_this.cpp
delete_this.cpp
 
 
dont_change_vector_while_iterating.cpp
dont_change_vector_while_iterating.cpp
 
 
enum_class.cpp
enum_class.cpp
 
 
enum_class_with_methods.cpp
enum_class_with_methods.cpp
 
 
enum_from_int.cpp
enum_from_int.cpp
 
 
enum_to_underlying.cpp
enum_to_underlying.cpp
 
 
epsilon.cpp
epsilon.cpp
 
 
exponential.cpp
exponential.cpp
 
 
extern_c.cpp
extern_c.cpp
 
 
file_basename.cpp
file_basename.cpp
 
 
file_basename_boost.cpp
file_basename_boost.cpp
 
 
file_delete_on_close.c
file_delete_on_close.c
 
 
file_exist.cpp
file_exist.cpp
 
 
file_exist_boost.cpp
file_exist_boost.cpp
 
 
file_move.cpp
file_move.cpp
 
 
file_parent_path.cpp
file_parent_path.cpp
 
 
file_parent_path_boost.cpp
file_parent_path_boost.cpp
 
 
file_read_all(binary).cpp
file_read_all(binary).cpp
 
 
file_read_all.c
file_read_all.c
 
 
file_read_lines.cpp
file_read_lines.cpp
 
 
file_read_write_concurrently.c
file_read_write_concurrently.c
 
 
file_remove.cpp
file_remove.cpp
 
 
file_write.cpp
file_write.cpp
 
 

Repository files navigation

cpp-code-snippets

Some useful C++ code snippets

Including minimal working example of standard vector, string, set, map, queue, file IO, ... and more.

Also there are installation instructions and possibly MWE for third-party libraries, including Eigen, Sophus, ceres, ... and more.

Most code snippets are originated from stackoverlow.

About

Some useful C++ code snippets

Topics

base64-encodingboostc-plus-pluscmakecppcprdlibexternjsonopencvpointerrandomstringvectorxml

Resources

Readme
Activity

Stars

72 stars

Watchers

4 watching

Forks

17 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.