OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:spBytes
(Results
1 - 2
of
2
) sorted by null
/external/libcxx/test/std/containers/views/span.objectrep/
as_bytes.pass.cpp
33
auto
spBytes
= std::as_bytes(sp);
34
using SB = decltype(
spBytes
);
38
assert(
spBytes
.extent == std::dynamic_extent);
40
assert(
spBytes
.extent == static_cast<std::ptrdiff_t>(sizeof(typename Span::element_type)) * sp.extent);
42
assert((void *)
spBytes
.data() == (void *) sp.data());
43
assert(
spBytes
.size() == sp.size_bytes());
as_writeable_bytes.pass.cpp
33
auto
spBytes
= std::as_writeable_bytes(sp);
34
using SB = decltype(
spBytes
);
38
assert(
spBytes
.extent == std::dynamic_extent);
40
assert(
spBytes
.extent == static_cast<std::ptrdiff_t>(sizeof(typename Span::element_type)) * sp.extent);
42
assert(static_cast<void*>(
spBytes
.data()) == static_cast<void*>(sp.data()));
43
assert(
spBytes
.size() == sp.size_bytes());
Completed in 573 milliseconds