Named parameter string formatting in C++

后端 未结 6 1970
甜味超标
甜味超标 2021-02-07 08:55

I\'m wondering if there is a library like Boost Format, but which supports named parameters rather than positional ones. This is a common idiom in e.g. Python, where you have a

6条回答
  •  爱一瞬间的悲伤
    2021-02-07 09:53

    Given that Python it's self is written in C and that formatting is such a commonly used feature, you might be able (ignoring copy write issues) to rip the relevant code from the python interpreter and port it to use STL maps rather than Pythons native dicts.

提交回复
热议问题