I was looking at the string accessor functions to understand the ABI, and in particular the performance overhead of iterating over characters in a string
However, this strikes me as highly peculiar as it does not follow the c++ language operator conventions:
operator[] usually returns a reference, and it usually returns a value type. This one does neither, and I am curious why. For example, it could return char32_t or int or char, depending on Unicode support
I was looking at the string accessor functions to understand the ABI, and in particular the performance overhead of iterating over characters in a string
However, this strikes me as highly peculiar as it does not follow the c++ language operator conventions:
operator[] usually returns a reference, and it usually returns a value type. This one does neither, and I am curious why. For example, it could return char32_t or int or char, depending on Unicode support