Learning C++

fmt::format对自定义数据类型的支持

{fmt} 是一个先进的格式化库, 它提供了一种安全的printf系列函数的替代方案。 C语言中常见的格式化字符串不正确的问题能够在编译期就被检测出来。 这篇文章将要介绍如何让用户定义的数据类型也能支持ftm::format。 例如,我们有一个用户定义数据类型: [ 2024年7月9日 ]

Use Literal String as Tempalte Parameter

[ 2024年5月30日 ]

Upgrade to Modern Cplusplus

从c++11开始,c++更像是一门新的语文, 它提供了很多新的特性,例如: auto, constexpr, lembda, thread, mutex, move semantics and so on. And more in c++14/17/20. It is time upgrade your c++ knowledge and leverage the power of the modern c++. [ 2024年5月30日 ]