A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://morganstanley.github.io/modern-cpp-kafka/doxygen/Header_8h_source.html below:

Modern C++ Kafka API: /home/runner/work/modern-cpp-kafka/modern-cpp-kafka/include/kafka/Header.h Source File

3 #include <kafka/Project.h> 5 #include <kafka/Types.h> 19  using

Key = std::string;

20  using

Value = ConstBuffer;

23  Header

(Key k, Value v): key(std::move(k)), value(v) {}

30  return

(key.empty() ?

"[null]"

: key) +

":"

+ value.toString();

40 using

Headers = std::vector<Header>;

45 #if COMPILER_SUPPORTS_CPP_17 46 const inline

Headers NullHeaders = Headers{};

48 const static

Headers NullHeaders = Headers{};

54 inline

std::string toString(

const

Headers& headers)

57

std::for_each(headers.cbegin(), headers.cend(),

58

[&ret](

const auto

& header) {

59

ret.append(ret.empty() ?

""

:

","

).append(header.toString());


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4