MCPcopy Create free account
hub / github.com/pybind/pybind11 / forward_like

Function forward_like

include/pybind11/stl.h:149–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147/// used for forwarding a container's elements.
148template <typename T, typename U>
149constexpr forwarded_type<T, U> forward_like(U &&u) {
150 return std::forward<detail::forwarded_type<T, U>>(std::forward<U>(u));
151}
152
153// Checks if a container has a STL style reserve method.
154// This will only return true for a `reserve()` with a `void` return.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected