projects
/
platform
/
core
/
base
/
bundle.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add IsEmpty() method
[platform/core/base/bundle.git]
/
src
/
bundle_cpp.cc
diff --git
a/src/bundle_cpp.cc
b/src/bundle_cpp.cc
index
2d3233a
..
6d1163c
100644
(file)
--- a/
src/bundle_cpp.cc
+++ b/
src/bundle_cpp.cc
@@
-170,6
+170,10
@@
Bundle& Bundle::operator = (Bundle&& b) noexcept {
return *this;
}
+bool Bundle::IsEmpty() const noexcept {
+ return (bundle_get_count(impl_->handle_) == 0) ? true : false;
+}
+
std::vector<Bundle::KeyInfo> Bundle::GetKeys() {
std::vector<Bundle::KeyInfo> v;