Ported to c++: styles/indext
Ported: styles/indexm