Skip to content

Commit 46878f1

Browse files
committed
Make size() const noexcept
Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 7f58893 commit 46878f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/kernel_program_cache.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class KernelProgramCache {
7979
std::map<ProgramCacheKeyT, ProgramWithBuildStateT> Cache;
8080
std::multimap<CommonProgramKeyT, ProgramCacheKeyT> KeyMap;
8181

82-
size_t size() { return Cache.size(); }
82+
size_t size() const noexcept { return Cache.size(); }
8383
};
8484

8585
using ContextPtr = context_impl *;

0 commit comments

Comments
 (0)