cbegin/cend isn't available on OSX