aboutsummaryrefslogtreecommitdiff
path: root/src/json.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.h')
-rw-r--r--src/json.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/json.h b/src/json.h
index 0e616e3..78bcee3 100644
--- a/src/json.h
+++ b/src/json.h
@@ -51,6 +51,8 @@ namespace TehJSON
Token consume(TokenType type);
TokenType nextTokenType();
void readFromTokens(std::vector<Token> tokens);
+ template <typename T>
+ std::vector<T> readVector(TokenType type, T(*)(const std::string));
// Leaf data fields
std::shared_ptr<void> data;