开源项目推荐:若干开源的轻量级C++库/头文件,例如json解析

1、json解析

https://github.com/nlohmann/json

2、fmt格式化

https://github.com/fmtlib/fmt

3、C++枚举转字符串,magic_enum

Belay the C++ | A weekly blog talking about (usually bad) practices in C++

Best ways to convert an enum to a string | Belay the C++

现代 C++ 的枚举(到字符串、从字符串、迭代)的静态反射,适用于任何枚举类型,无需任何宏或样板代码

https://github.com/Neargye/magic_enum

4、cppitertools

Implementation of python itertools and builtin iteration functions for C++17

https://github.com/ryanhaining/cppitertools

5、pybind11

Seamless operability between C++11 and Python 

https://github.com/pybind/pybind11

6、排序算法TimSort

A C++ implementation of timsort 

https://github.com/timsort/cpp-TimSort

7、FakeIt

FakeIt是一个简单的C ++模拟框架。

C++ mocking made easy. A simple yet very expressive, headers only library for c++ mocking. 

https://github.com/eranpeer/FakeIt

8、C++ STL重构,提升性能

https://github.com/mattreecebentley/plf_colony

https://github.com/mattreecebentley/plf_queue

https://github.com/mattreecebentley/plf_list

https://github.com/mattreecebentley/plf_stack

https://github.com/mattreecebentley/plf_rand

9、ring-span

ring-span lite - A C++yy-like ring_span type for C++98, C++11 and later in a single-file header-only library

https://github.com/martinmoene/ring-span-lite

10、plf_nanotimer

一个简单的 C++ 03/11/etc 计时器类,用于~微秒精度的跨平台基准测试。实现尽可能有限和简单,以提供最低的开销。

https://github.com/mattreecebentley/plf_nanotimer

(1)acs官方例程也有定时器类。

C:\Program Files (x86)\ACS Motion Control\SPiiPlus ADK Suite v3.13.01\ACSC\C_CPP\Samples\Measurements Demo\Measurements Demo\

PreciseTimer.cpp

PreciseTimer.h

(2)Timing utility, wraps C++11 std::chrono in an easy to use StopWatch utility

https://github.com/KjellKod/StopWatch

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值