<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>norizn</author_name>
  <author_url>https://blog.hatena.ne.jp/norizn/</author_url>
  <blog_title>のりブログ</blog_title>
  <blog_url>https://norizn.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>こんにちは！のりです。 今回は結構上級者向けの内容です。え？constって変数を定数として定義したり、Get関数内でメンバ変数の値を変更できないようにしたりしてプログラムコードの可読性を上げるために付けるやつですよね？と思った方は甘いです！(/・ω・)/ 今回の話はそんな簡単な話ではないのです。 constには可読性を上げるメリットがあり、開発後半になってから全ての関数にconstを付けるのは大変だから最初から付けておくのが重要といった話をよく聞きます。 その一方でconstが付いた関数内でメンバ変数の値を変更するような仕様変更があったり、せっかくのconst変数の値を変更しないと変更箇所が大…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnorizn.hatenablog.com%2Fentry%2F2020%2F10%2F11%2F005715&quot; title=&quot;【C++】constを付ける理由。付ける派と付けない派の大きな違い。constの使用例やメリット・デメリット。 - のりブログ&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>https://cdn.user.blog.st-hatena.com/default_entry_og_image/113434633/1514249407787807</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-10-11 00:57:15</published>
  <title>【C++】constを付ける理由。付ける派と付けない派の大きな違い。constの使用例やメリット・デメリット。</title>
  <type>rich</type>
  <url>https://norizn.hatenablog.com/entry/2020/10/11/005715</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
