Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Although there is no direct reference of it, I'd think that is most logical behavior of <code>std::codecvt::out</code>. Consider following scenario:</p> <ul> <li>You use <code>std::codecvt::out</code> in the same manner as you did - not translating any characters (possibly without knowing) into your <code>out_buf</code>.</li> <li>You now want to translate another string into your <code>out_buf</code> (again using <code>std::codecvt::out</code>) such that it appends the content which is already inside</li> <li>To do so, you decide to use your <code>buf_mid</code> as you know it points directly after your string that you translated in the first step.</li> <li>Now, if <code>std::codecvt::out</code> worked according to your expectations (<code>buf_mid</code> pointing to the character after first) then the first character of your <code>out_buf</code> would never be written which would not be exactly what you would want/expect in this case.</li> </ul> <p>In essence, <code>extern_type*&amp; to_next</code> (last parameter of <code>std::codecvt::out</code>) is here for you as a reference of where you left of - so you know where to continue - which is in your case indeed the same position as where you started (<code>extern_type* to</code>) parameter. </p> <ul> <li><p><a href="http://en.cppreference.com/w/cpp/locale/codecvt/out" rel="nofollow">cppreferece.com on std::codecvt::out</a></p></li> <li><p><a href="http://www.cplusplus.com/reference/locale/codecvt/out/" rel="nofollow">cpulusplus.com on std::codecvt::out</a></p></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload