preCICE v3.1.2
Loading...
Searching...
No Matches
span_tools.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "precice/span.hpp"
4
5namespace precice {
6
8template <typename T>
9auto refToSpan(T &element)
10{
11 return precice::span<T>{&element, 1};
12}
13
14} // namespace precice
A C++ 11 implementation of the non-owning C++20 std::span type.
Definition span.hpp:284
Main namespace of the precice library.
auto refToSpan(T &element)
Wraps a single element into a span.
Definition span_tools.hpp:9