codecvt::length

int length(State state&,
    From *first1, const From *last1, size_t len2) const throw();

The member function returns do_length(first1, last1, len2).