Skip to content

Instantly share code, notes, and snippets.

View bolero-MURAKAMI's full-sized avatar

Bolero MURAKAMI bolero-MURAKAMI

View GitHub Profile
 一
元:敷地内の駐輪場を出て昇降口に着いても湧田とフェルミは二人一緒だった。
正:敷地内の駐輪場を出て昇降口に着いても和久田とフェルミは二人一緒だった。
 六
元:一般的な人間なら、ここで少しは起こるようなそぶりを見せたりするのだろうか、

右辺値参照は、右辺値を束縛する参照である。
& で宣言される参照型を左辺値参照と呼ぶのに対して、&& で宣言される参照型を右辺値参照と呼ぶ。
C++11 以前では、右辺値参照と左辺値参照を区別しなかったため、右辺値はconst左辺値参照 (const&) に束縛するよう扱われていた。
そのため、右辺値のみに対して特別な処理を記述することができなかった。

  vector<int> v, vv;
  v = vv;                  // 代入式1
  v = vector<int>(100, 0); // 代入式2
// ループ用変数を定義
size_t n = end - begin;
size_t s = v.size(); // vは、メンバ変数として保持される、`vector<result_type>`型のシード列オブジェクト
auto m = max(s + 1, n);
// 分布用変数を定義
auto t = (n >= 623) ? 11 : (n >= 68) ? 7 : (n >= 39) ? 5 : (n >= 7) ? 3 : (n - 1) / 2;
auto p = (n - t) / 2;
auto q = p + t;

Sprout C++ Libraries

Welcome to the Sprout C++ Libraries

C++11 constexpr based Containers, Algorithms, Random numbers, Parsing, Ray tracing, Synthesizer, and others.
###############################################################################
Sprout C++ Libraries
###############################################################################
*******************************************************************************
Welcome to the Sprout C++ Libraries
*******************************************************************************
| C++11 constexpr based Containers, Algorithms, Random numbers, Parsing, Ray tracing, Synthesizer, and others.

all_of

Interface

C++

template<typename InputIterator, typename Predicate>

// サンプル数 : デフォルト = 44100
#ifndef CMP_SAMPLE
# define CMP_SAMPLE 44100
#endif
// 長さ[sec] : デフォルト = 1
#ifndef CMP_LENGTH
# define CMP_LENGTH 1
#endif
#if defined(COMPOST_LOADING_SOURCE_VERSION)
COMPOST_SRC_VERSION(0)
#elif defined(COMPOST_LOADING_SOURCE_INFO)
1,
1,
44100,
88200,
#if defined(COMPOST_LOADING_SOURCE_VERSION)
COMPOST_SRC_VERSION(0)
#elif defined(COMPOST_LOADING_SOURCE_INFO)
1,
1,
44100,
88200,
// 入力ファイル名 : デフォルト = input.wav.hpp
#ifndef CMP_FILENAME
# define CMP_FILENAME input.wav.hpp
#endif
#include <sprout/compost.hpp>
#include <sprout/array.hpp>
#include <sprout/preprocessor.hpp>
#include "wave_io.hpp"