問題タブ [std-span]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c++ - libstdc++ に span::span(Container&) がないのはなぜですか?
cppreferenceによると、C++20 では、std::span
コンテナー参照を使用して構築可能であると想定されています。
しかし、libstdc++ のspanファイルのマスター ブランチ(2020 年 1 月 18 日現在) では、これらのコンストラクターは表示されません。私はコンストラクターが取るのを見ますRange&&
- それは十分な置き換えですか? または - 何か不足していますか?
c++ - std::span を std::vector に割り当てる最も簡単な方法
これがやりたかった
しかし、それはコンパイルされません。代替手段は何ですか?