Blender Git Loki

Git Commits -> Revision d23a5b1

Revision d23a5b1 by Ankit Meel (master)
December 16, 2020, 07:33 (GMT)
BLI: constexpr Span, IndexRange, StringRef(Null/Base)

Motivated by `std::string_view` being usable in
const (compile-time) context.
One functional change was needed for StringRef:
`std::char_traits<char>::length(str)` instead of `strlen`.

Reviewed By: JacquesLucke, LazyDodo
Differential Revision: https://developer.blender.org/D9788

Commit Details:

Full Hash: d23a5b1d88df513aff1dc1ba09730221567f2857
Parent Commit: e671c54
Lines Changed: +180, -145

6 Modified Paths:

/source/blender/blenlib/BLI_index_range.hh (+23, -22) (Diff)
/source/blender/blenlib/BLI_span.hh (+63, -61) (Diff)
/source/blender/blenlib/BLI_string_ref.hh (+64, -62) (Diff)
/source/blender/blenlib/tests/BLI_index_range_test.cc (+7, -0) (Diff)
/source/blender/blenlib/tests/BLI_span_test.cc (+15, -0) (Diff)
/source/blender/blenlib/tests/BLI_string_ref_test.cc (+8, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021