summaryrefslogtreecommitdiff
path: root/c++/codec/schema.h
diff options
context:
space:
mode:
Diffstat (limited to 'c++/codec/schema.h')
-rw-r--r--c++/codec/schema.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/c++/codec/schema.h b/c++/codec/schema.h
index 2f63fe9..ba6dd4c 100644
--- a/c++/codec/schema.h
+++ b/c++/codec/schema.h
@@ -42,6 +42,13 @@ template <typename... T> struct Tuple {};
/**
* This acts as a separator of different encodings being mashed together
+ * For example we can transport any base64 encodings in JSON
+ *
+ * using WrappedExample = schema::Tuple<
+ * schema::Wrapper<schema::String, encode::Base64>
+ * >;
+ *
+ * data<WrappedExample, encode::Json> ex_data;
*/
template <typename T, typename Enc>
class Wrapper {};