[span.objectrep] # 23 Containers library [[containers]](./#containers) ## 23.7 Views [[views]](views#span.objectrep) ### 23.7.2 Contiguous access [[views.contiguous]](views.contiguous#span.objectrep) #### 23.7.2.3 Views of object representation [span.objectrep] [🔗](#lib:as_bytes) `template span as_bytes(span s) noexcept; ` [1](#1) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/containers.tex#L20965) *Effects*: Equivalent to: return R{reinterpret_cast(s.data()), s.size_bytes()}; where R is the return type[.](#1.sentence-1) [🔗](#lib:as_writable_bytes) `template span as_writable_bytes(span s) noexcept; ` [2](#2) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/containers.tex#L20979) *Constraints*: is_const_v is false[.](#2.sentence-1) [3](#3) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/containers.tex#L20983) *Effects*: Equivalent to: return R{reinterpret_cast(s.data()), s.size_bytes()}; where R is the return type[.](#3.sentence-1)