ウホウホゴリラッホ

主に勉強したことをまとめていきます。twitter:@pytran3

C++で拡張for文

実装例

const auto&で受けるのが万能そう

  for(const auto& d : {3, 5, 15, 25, 75}) {
    cout << d << endl;
  }