MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / str_buffer

Function str_buffer

3rdparty/cppzmq/zmq.hpp:1357–1364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1355// Equivalent to zmq::buffer(std::string_view("...")).
1356template<class Char, size_t N>
1357constexpr const_buffer str_buffer(const Char (&data)[N]) noexcept
1358{
1359 static_assert(detail::is_pod_like<Char>::value, "Char must be POD");
1360#ifdef ZMQ_EXTENDED_CONSTEXPR
1361 assert(data[N - 1] == Char{0});
1362#endif
1363 return const_buffer(static_cast<const Char *>(data), (N - 1) * sizeof(Char));
1364}
1365
1366namespace literals
1367{

Callers

nothing calls this directly

Calls 1

const_bufferClass · 0.85

Tested by

no test coverage detected