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
495 stars 40 forks source link

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

Closed martinmoene closed 4 years ago

martinmoene commented 4 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 );
}