Why is the code in most STL implementations so convoluted?

后端 未结 6 1065
刺人心
刺人心 2021-01-30 06:15

The STL is a critical piece of the C++ world, most implementations derive from the initial efforts by Stepanov and Musser.

My question is given the criticality of the co

6条回答
  •  失恋的感觉
    2021-01-30 07:09

    To add on what people have said already, the style you see is the GNU style. Ugly? Perhaps, that's in the eye of the beholder. But it's a strictly-defined style, and it does make all code look similar, as opposed to resistant to getting used to.

提交回复
热议问题