martinmoene / span-lite

span lite - A C++20-like span for C++98, C++11 and later in a single-file header-only library
Boost Software License 1.0
499 stars 43 forks source link

[Readme] Use #include in code on Godbolt #49

Closed martinmoene closed 5 years ago

martinmoene commented 5 years ago

For example:

#include "https://raw.githubusercontent.com/martinmoene/span-lite/master/include/nonstd/span.hpp"

main()
{
    int a[] = {1,2,3,};
    nonstd::span<int> spn( a );

    as_bytes( spn );
}