modern-cpp-tricks

This list collects modern C++ techniques used in coding interviews and competitive programming.

github.com/rachitiitr/modern-cpp-tricks
modern-cpp-tricks homepage screenshot

About modern-cpp-tricks

This is a collection of modern C++ code examples for coding interviews and competitive programming. It covers techniques such as using initializer lists with std::min and std::max, structured bindings for pairs and arrays, variadic macros for logging, generic functions for reading and writing variables and containers, and function decorators for printing inputs and results.

Key features

  • Use initializer list with std::min and std::max for multiple values
  • Destructure pairs and arrays with structured bindings
  • Log multiple variables with variadic debug macro and logger
  • Read and write multiple variables with generic templates
  • Read and write containers with helper functions
  • Print function inputs and outputs with decorator wrapper
Best for: Programmers preparing for coding interviews or competitive programming using C++.
Good for
  • Includes copyable code examples for each technique
  • Covers input, output, debugging, and container handling in one list

modern-cpp-tricks at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Not stated
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

modern-cpp-tricks alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Toph

toph.co

Toph hosts competitive programming contests and problems on algorithms and data structures, with a community for participants.

Popular in Learn to Code

Well-known listings from the same topic.

All 387
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing