What does iota of std::iota stand for?

前端 未结 5 1251
南笙
南笙 2020-12-02 06:19

I\'m assuming the \"i\" is increment and the \"a\" is assign, but I could not figure out or find the answer. Also, it looks very similar to the non-standard itoa

5条回答
  •  猫巷女王i
    2020-12-02 06:50

    std::iota will fill an iterator range with successively incremented values.

    To answer your specific question, it actually doesn't stand for anything. Iota (pronounced "eye-oh-duh" or "eye-oh-tuh" in English) is a greek letter with mathematical connotations.

    It is standard in C++11, but not in earlier standards.

提交回复
热议问题