<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chihayayoi</author_name>
  <author_url>https://blog.hatena.ne.jp/chihayayoi/</author_url>
  <blog_title>ゆき社長</blog_title>
  <blog_url>https://chihaya.hatenadiary.com/</blog_url>
  <categories>
    <anon>プログラミングの悩み</anon>
    <anon>C++</anon>
  </categories>
  <description>ストリームプログラミングでは &gt; で、入力バッファ、出力バッファと 異なるバッファにアクセスができるが oprator[] において、そういうことが出来ないだろうか？ 理想形は、入力データを何らかの変換を行う hogeクラスについて hoge[1] = 100; // この場合は 入力バッファにアクセス int x = hoge[1]; // この場合は 出力バッファにアクセス こういうことを行いたい。が やり方がわからない、出来ない // 左辺値の場合はこちら int&amp; operator[]( const int n ) { return( in[n] ); } // 右辺値の場合はこちら …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchihaya.hatenadiary.com%2Fentry%2F2013%2F11%2F11%2F043928&quot; title=&quot;operator[] を右辺値と左辺値 時にふるまいを変えたい - ゆき社長&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-11-11 04:39:28</published>
  <title>operator[] を右辺値と左辺値 時にふるまいを変えたい</title>
  <type>rich</type>
  <url>https://chihaya.hatenadiary.com/entry/2013/11/11/043928</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
