MCPcopy Create free account
hub / github.com/boostorg/compute / get

Method get

include/boost/compute/utility/program_cache.hpp:87–90  ·  view source on GitHub ↗

Returns the program object with \p key. Returns a null optional if no program with \p key exists in the cache.

Source from the content-addressed store, hash-verified

85 /// Returns the program object with \p key. Returns a null optional if no
86 /// program with \p key exists in the cache.
87 boost::optional<program> get(const std::string &key)
88 {
89 return m_cache.get(std::make_pair(key, std::string()));
90 }
91
92 /// Returns the program object with \p key and \p options. Returns a null
93 /// optional if no program with \p key and \p options exists in the cache.

Callers 1

get_global_cacheMethod · 0.45

Calls 1

make_pairFunction · 0.85

Tested by

no test coverage detected