• Boost库简单介绍


    c++ boost库官网

    https://www.boost.org/

    官网最新版文档说明

    https://www.boost.org/doc/libs/1_70_0/

    Boost库是一个可移植、提供源代码的C++库,作为标准库的后备,是C++标准化进程的开发引擎之一,是为C++语言标准库提供扩展的一些C++程序库的总称。 Boost库由C++标准委员会库工作组成员发起,其中有些内容有望成为下一代C++标准库内容。在C++社区中影响甚大,是不折不扣的“准”标准库。Boost由于其对跨平台的强调,对标准C++的强调,与编写平台无关。大部分boost库功能的使用只需包括相应头文件即可,少数(如正则表达式库,文件系统库等)需要链接库。但Boost中也有很多是实验性质的东西,在实际的开发中使用需要谨慎。

    Boost库由Boost社区组织开发、维护。其目的是为C++程序员提供免费、同行审查的、可移植的程序库。Boost库可以与C++标准库完美共同工作,并且为其提供扩展功能。Boost库使用Boost License来授权使用。

    Boost社区建立的初衷之一就是为C++的标准化工作提供可供参考的实现,Boost社区的发起人Dawes本人就是C++标准委员会的成员之一。在Boost库的开发中,Boost社区也在这个方向上取得了丰硕的成果。在送审的C++标准库TR1中,有十个Boost库成为标准库的候选方案。在更新的TR2中,有更多的Boost库被加入到其中。从某种意义上来讲,Boost库成为具有实践意义的准标准库。
    可下载Boost C++ Libraries安装boost库。大部分boost库功能的使用只需包括相应头文件即可,少数(如正则表达式库,文件系统库等)需要链接库。里面有许多具有工业强度的库,如graph库。

    主要分类

    按照功能分类的Boost库列表
    按照实现的功能,Boost 可为大致归入以下20个分类,在下面的分类中,有些库同时归入几种类别。

    字符串和文本处理

    a) Conversion
    b) Format
    c) IOStream
    d) Lexical Cast
    e) Regex
    f) Spirit
    g) String Algo
    h) Tokenizer
    i) Wave
    j) Xpressive

    容器

    a) Array
    b) Bimap
    c) Circular Buffer
    d) Disjoint Sets
    e) Dynamic Bitset
    f) GIL
    g) Graph
    h) ICL
    i) Intrusive
    j) Multi-Array
    k) Multi-Index
    l) Pointer Container
    m) Property Map
    n) Property Tree
    o) Unordered
    p) Variant

    迭代器

    a) GIL
    b) Graph
    c) Iterators
    d) Operators
    e) Tokenizer

    算法

    a) Foreach
    b) GIL
    c) Graph
    d) Min-Max
    e) Range
    f) String Algo
    g) Utility

    函数对象和高阶编程

    a) Bind
    b) Function
    c) Functional
    d) Functional/Factory
    e) Functional/Forward
    f) Functional/Hash
    g) Lambda
    h) Member Function
    i) Ref
    j) Result Of
    k) Signals
    l) Signals2
    m) Utility

    泛型编程

    a) Call Traits
    b) Concept Check
    c) Enable If
    d) Function Types
    e) GIL
    f) In Place Factory, Typed In Place Factory
    g) Operators
    h) Property Map
    i) Static Assert
    j) Type Traits

    模板元编程

    a) Function Types
    b) Fusion
    c) MPL
    d) Proto
    e) Static Assert
    f) Type Traits

    预处理元编程

    a) Preprocessors

    并发编程

    a) Asio
    b) Interprocess
    c) MPI
    d) Thread

    数学和数字

    a) Accumulators
    b) Integer
    c) Interval
    d) Math
    e) Math Common Factor
    f) Math Octonion
    g) Math Quaternion
    h) Math/Special Functions
    i) Math/Statistical Distributions
    j) Multi-Array
    k) Numeric Conversion
    l) Operators
    m) Random
    n) Rational
    o) uBLAS

    排错和测试

    a) Concept Check
    b) Static Assert
    c) Test

    数据结构

    a) Any
    b) Bitmap
    c) Compressed Pair
    d) Fusion
    e) ICL
    f) Multi-Index
    g) Pointer Container
    h) Property Tree
    i) Tuple
    j) Uuid
    k) Variant

    图像处理

    a) GIL

    输入输出

    a) Asio
    b) Assign
    c) Format
    d) IO State Savers
    e) IOStreams
    f) Program Options
    g) Serialization

    跨语言混合编程

    a) Python

    内存管理

    a) Pool
    b) Smart Ptr
    c) Utility

    解析

    a) Spirit

    编程接口

    a) Function
    b) Parameter

    杂项

    a) Compressed Pair
    b) Conversion
    c) CRC
    d) Date Time
    e) Exception
    f) Filesystem
    g) Flyweight
    h) Lexical Cast
    i) Meta State Machine
    j) Numeric Conversion
    k) Optional
    l) Polygon
    m) Program Options
    n) Scope Exit
    o) Statechart
    p) Swap
    q) System
    r) Timer
    s) Tribool
    t) Typeof
    u) Units
    v) Utility
    w) Value Initialized

    编译器问题的变通方案

    a) Compatibility
    b) Config

    常用库

    Regex

    正则表达式库

    Spirit

    LL parser framework,用C++代码直接表达EBNF

    Graph

    图组件和算法

    Lambda

    在调用的地方定义短小匿名的函数对象,很实用的functional功能

    concept check

    检查泛型编程中的concept

    Mpl

    用模板实现的元编程框架

    Thread

    可移植的C++多线程库

    Python

    把C++类和函数映射到Python之中

    Pool

    内存池管理

    smart_ptr

    5个智能指针学习智能指针必读,一份不错的参考是来自CUJ的文章

    参考:https://blog.csdn.net/jhsword/article/details/95061632

  • 相关阅读:
    Android -- 保存文件
    Android -- AsyncTask
    Java 集合
    Android -- ViewPager放入多个XML监听每个的控件
    Android -- 自定义标题栏,背景颜色填充满
    PowerShell正则表达式(一) 定义模式
    PowerShell 简单模式识别 1
    Powershell 设置数值格式 1
    PowerShell String对象方法 1
    PowerShell 字符串操作符
  • 原文地址:https://www.cnblogs.com/whiteBear/p/14017186.html
Copyright © 2020-2023  润新知