MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / GetVectorOfStrings

Function GetVectorOfStrings

source/opt/optimizer.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35namespace spvtools {
36
37std::vector<std::string> GetVectorOfStrings(const char** strings,
38 const size_t string_count) {
39 std::vector<std::string> result;
40 for (uint32_t i = 0; i < string_count; i++) {
41 result.emplace_back(strings[i]);
42 }
43 return result;
44}
45
46struct Optimizer::PassToken::Impl {
47 Impl(std::unique_ptr<opt::Pass> p) : pass(std::move(p)) {}

Calls 1

emplace_backMethod · 0.80

Tested by

no test coverage detected