gsl::not_null vs. std::reference_wrapper vs. T&
References are not pointers that cannot be null. References are semantically very different to pointers. References have value assignment and comparison semantics; that is, assignment or comparison operations involving references read and write the referenced value. Pointers have (counterintuitively) reference assignment and comparison semantics; that is, assignment or comparison operations involving pointers read and write … Read more