开发者

How to align map entries

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜