The C++ Core Guidelines is a living set of best-practice recommendations for writing modern, safe, and maintainable C++. Authored and curated by leaders in the C++ community, it organizes guidance into rules on type and resource safety, interfaces, performance, error handling, concurrency, and library design. Each rule is rationale-driven, showing the “why” behind recommendations and linking to examples that illustrate good and bad patterns. The guidelines encourage use of modern language features—RAII, smart pointers, move semantics, ranges, and constexpr—while steering developers away from brittle idioms and unsafe constructs. Enforcement is a central theme: many rules are designed to be checkable by static analysis tools and linters so teams can automate compliance. As a community artifact, it evolves with the language standard, offering a practical compass for teams upgrading legacy code or establishing standards for greenfield projects.

Features

  • Covers modern C++ (C++11 through C++20) usage patterns and best practices
  • Emphasizes safety, simplicity, and performance
  • Encourages use of a guideline support library (GSL) for safer abstractions
  • Structured to support tool enforcement and automated analysis of code
  • Designed for gradual adoption, allowing subsets (profiles) of rules to be used incrementally
  • Continuously updated through community contributions and expert review (as of July 8, 2025)

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow C++ Core Guidelines

C++ Core Guidelines Web Site

Other Useful Business Software
$300 Free Credits to Build on Google Cloud Icon
$300 Free Credits to Build on Google Cloud

New to Google Cloud? Get $300 in credits to explore Compute Engine, BigQuery, Cloud Run, Gemini Enterprise Agent Platform, and more.

Start your next project with $300 in free Google Cloud credit. Spin up VMs, run containers, query petabytes in BigQuery, or build agents with Gemini Enterprise Agent Platform. Once your credits are used, keep building with 20+ always-free tier products including Compute Engine, Cloud Storage, GKE, and Cloud Run functions. No commitment required—just sign up and start building.
Claim $300 Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of C++ Core Guidelines!

Additional Project Details

Registered

2025-08-25