Skip to content

[feature / content]: 卷三新增「vector 深入」+「string 深入」 #49

@Charliechen114514

Description

@Charliechen114514

从v0.5.0开始,准备集中火力,修复已有文章的技术陈述问题,清理历史文章债务

给卷三标准库写两篇容器深入文章——vector 讲内部实现,string 讲字符串底层,都自洽、不断链,作为未来"容器选择指南"入口篇的两块辐条。

Feature内容

写两篇各自独立、不依赖任何还没写的文章的容器深入。

第一篇讲 vector 的内部实现(不重复卷一讲过的"怎么用 vector",只讲底层)。具体核心构思,分步到PR中说明

第二篇讲 string 的底层:重点是 SSO(短字符串优化,字符串短就直接存在对象里、不另外分配)和 COW(写时复制)的历史等。具体分配到PR。

文章来源将会是笔者之前读大学时的私有笔记。整理后按照多篇文章的形式公开。

将来"容器选择指南"入口篇写出来时,单独占一个号,这个算远程规划

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestfeaturefeature, which enhaucement is using in improvement no matter it is bug fix or anythong else :)
    No fields configured for Feature.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions