开发者

How to align map entries

开发者 https://www.devze.com 2023-03-28 17:12 出处:网络
I wonder if there is a way to align the map lines so that the colons appear vertically? I have tried SetIndent() and SetLocalIndent(), bu开发者_运维知识库t with now visible effects.

I wonder if there is a way to align the map lines so that the colons appear vertically?

I have tried SetIndent() and SetLocalIndent(), bu开发者_运维知识库t with now visible effects.

thanks


You can't do this. Yaml-cpp writes its output as soon as it can, so it can't know if later on, you'll be using a very long key.

0

精彩评论

暂无评论...
验证码 换一张
取 消