代码

竟然在 C++ 标准库里面发现了 doxygen 注释,看来我选择它没错了:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
/**
* @brief Provides compile-time rational arithmetic.
*
* This class template represents any finite rational number with a
* numerator and denominator representable by compile-time constants of
* type intmax_t. The ratio is simplified when instantiated.
*
* For example:
* @code
* std::ratio<7,-21>::num == -1;
* std::ratio<7,-21>::den == 3;
* @endcode
*
*/
template<intmax_t _Num, intmax_t _Den = 1>

struct ratio

第1️⃣次在自己的代码中使用“用户自定义字面值”,太爽了: https://github.com/movsb/libstuff/commit/5e652e78f1ac18c2d78469f346d7acf22de0ce45

系统

  • 尝试添加一个“自定义短语”,MacOS 卡出屎了,直接重启。
桃子的碎碎念 桃子 编辑