Skip to content
Snippets Groups Projects
Commit a4f7272d authored by Paweł Kędzia's avatar Paweł Kędzia
Browse files

Wrapper to unordered::set to return std::set

parent 12105975
No related merge requests found
......@@ -70,6 +70,13 @@ public:
return set_;
}
/**
* Wrapper for boost::unordered set
*/
std::set<UnicodeString> to_std_set() const {
return std::set<UnicodeString>(this->set_.begin(), this->set_.end());
}
void swap(StrSet& ss) {
ss.set_.swap(set_);
}
......
......@@ -11,9 +11,12 @@
%include "value.i"
%include "std_string.i"
%include "std_set.i"
%feature("notabstract") Wccl::StrSet;
%template(UnicodeStringMap) std::set<UnicodeString>;
namespace Wccl {
class StrSet : public Value {
public:
......@@ -47,6 +50,9 @@ namespace Wccl {
//
UnicodeString to_raw_string_u() const;
//
std::set<UnicodeString> to_std_set() const;
};
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment