Skip to content

CppMore

Dive deep into the C++ core, and discover more!

  • Home
  • Articles
  • TGS
  • RSS
  • Guestbook
  • About

BasicsCategorySubscribe

C++ Adventures: Namespaces

本篇回顾 Namespaces,特别常用的一个 C++ 特性。 Name Conflicts 随着项目模块变多,类型自然也会变多,此时就会遇到一个问题:多个模块间的类型出现重名。这就是名称碰撞问题,现… Continue Reading C++ Adventures: Namespaces

  • Posted on: October 19, 2025 October 19, 2025
  • Author: 里缪
  • Categories: Basics
  • Tags: Namespaces
  • 4
  • Views 216

C++ Adventures: Types

春三月,杂花若绮,纤云都净,正是万物蕃息的时节。 今年的新系列 C++ Adventures 也要开始更新了。这个系列将从新的视角来回顾 C++ 语言中的基本概念,每篇内容的难度等级定位为三到五星,乃… Continue Reading C++ Adventures: Types

  • Posted on: March 20, 2025 May 3, 2025
  • Author: 里缪
  • Categories: Basics
  • Views 774

Normal OR Rules for Reference Bindings

What are the ranking rules for reference bindings? Let’s consider the following example: void … Continue Reading Normal OR Rules for Reference Bindings

  • Posted on: May 19, 2024 May 19, 2024
  • Author: 里缪
  • Categories: Basics
  • 2
  • Views 930

Mastering Placeholder Type Deduction

本篇可以结合 Left-to-Right vs. Right-to-Left Coding Styles 阅读,属于同一主题。本篇侧重于讲解具体的类型推导规则。 Decltype Specifier … Continue Reading Mastering Placeholder Type Deduction

  • Posted on: March 10, 2024 May 16, 2024
  • Author: 里缪
  • Categories: Basics
  • 3
  • Views 861

Left-to-Right vs. Right-to-Left Coding Styles

进入 Modern C++,声明风格由 Right-to-Left 逐渐转变为 Left-to-Right,个中差异,优劣得失,且看本篇内容。 前言 Classic C++ 中,声明风格是自右向左,如… Continue Reading Left-to-Right vs. Right-to-Left Coding Styles

  • Posted on: March 9, 2024 March 10, 2024
  • Author: 里缪
  • Categories: Basics
  • 3
  • Views 1011

std:: versus ::std::

再再再补充一个重载决议的例子。 大家可能在某些地方见过 ::std:: 这样的代码,比如 ::std::swap,::std::vector,::std::nullptr_t。 在 Qualified… Continue Reading std:: versus ::std::

  • Posted on: December 30, 2023 December 31, 2023
  • Author: 里缪
  • Categories: Basics
  • Tags: Overload Resolution
  • 2
  • Views 900

Monads in Modern C++, What, Why, and How

今天这篇讲 Monads,对 C++ devs 来说是一个比较新的概念,也是一个比较难理解的概念。本文将概念和实践串起来讲,先讲抽象理论,后面讲具体实现和使用,以全面理解其定位。 Language 编… Continue Reading Monads in Modern C++, What, Why, and How

  • Posted on: August 14, 2023 August 14, 2023
  • Author: 里缪
  • Categories: Basics
  • 4
  • Views 3412

An In-depth Look at C++ Keyword: static

占位,待录。

  • Posted on: June 25, 2023 January 18, 2024
  • Author: 里缪
  • Categories: Basics
  • 4
  • Views 456

洞悉函数重载决议

占位,待录。

  • Posted on: September 4, 2022 January 18, 2024
  • Author: 里缪
  • Categories: Basics
  • 5
  • Views 553

Notice

所有文章,俱为原创;未经允许,请勿转载。
网站新建,内容待迁,功能不全,尚在维护。

Free Books

C++ Generative Metaprogramming
The Book of Modern C++

Recent Posts

  • C++ Adventures: Namespaces
  • 怎样定位问题
  • 活动报告:围点第 4 期 Static Reflection
  • C++26 反射元编程:Spec API 注入模型
  • “……” 这种 C++ 语法已被标准弃用
  • std::monostate ≠ “空”类型
  • C++26 Finally Makes std::projected ADL-Proof
  • 另一种阻止 ADL 的巧妙手法

Recent Comments

  1. 里缪 on C++ Adventures: Namespaces
  2. bz on C++ Adventures: Namespaces
  3. Li Miu on 《产生式元编程》第二章 自复用代码生成技
  4. Li Miu on Clean Conversion from Run-time Values to Compile-time Constants in C++
  5. SKUSD on Clean Conversion from Run-time Values to Compile-time Constants in C++

Archives

  • October 2025 (1)
  • September 2025 (1)
  • July 2025 (2)
  • May 2025 (2)
  • April 2025 (3)
  • March 2025 (1)
  • October 2024 (1)
  • August 2024 (1)
  • July 2024 (3)
  • June 2024 (3)
  • May 2024 (3)
  • April 2024 (2)
  • March 2024 (2)
  • February 2024 (3)
  • January 2024 (3)
  • December 2023 (4)
  • November 2023 (5)
  • October 2023 (1)
  • September 2023 (5)
  • August 2023 (3)
  • July 2023 (5)
  • June 2023 (3)
  • May 2023 (1)
  • April 2023 (4)
  • March 2023 (1)
  • January 2023 (1)
  • November 2022 (1)
  • September 2022 (2)
  • July 2022 (2)
  • May 2022 (1)
  • February 2022 (2)
  • January 2022 (2)
  • August 2021 (1)
  • May 2021 (1)
  • July 2020 (1)
  • May 2020 (1)
  • April 2020 (2)
  • March 2020 (1)
  • January 2020 (1)
  • April 2019 (1)
  • March 2019 (5)
  • February 2019 (1)
  • January 2019 (3)
  • December 2018 (1)

Categories

  • Basics (9)
  • C++11 (1)
  • C++14 (1)
  • C++17 (2)
  • C++20 (7)
  • C++23 (2)
  • C++26 (7)
  • Concurrency (2)
  • Metaprogramming (16)
  • Networking (10)
  • Performance (2)
  • Techniques (4)
  • TodayGroupShared (23)
  • Tools (1)
  • Tricks (2)
  • 围点 (1)
  • 生活琐记 (3)

Attributes C++11 C++14 C++20 C++23 C++26 CMake Comma operator Constant expressions consteval constexpr constinit Coroutine deprecated Expansion statements explicit(bool) fallthrough Fold expressions Generative metaprogramming Idioms Initialization inline lambda Macros maybe_unused Monads namespace nodiscard noreturn no_unique_address NTTP Overload Resolution Pattern matching Polymorphism Recursive composition Recursive inheritance static std::exchange std::tuple tag-dispatching Tricks typename Value categories Variadic templates Vexing parses problem

Visitors

  • 19
  • 17
  • 218
  • 2,253
  • 122,060
  • 213,073
  • 72,071
  • 93

©2017 - 2025  CppMore.  All rights reserved.