Spicy
hilti
toolchain
include
ast
operators
optional.h
1
// Copyright (c) 2020-2021 by the Zeek Project. See LICENSE for details.
2
3
#pragma once
4
5
#include <hilti/ast/operators/common.h>
6
#include <hilti/ast/types/result.h>
7
8
namespace
hilti::operator_
{
9
10
STANDARD_OPERATOR_1(optional, Deref, operator_::dereferencedType(0), type::constant(type::Optional(type::Wildcard())),
11
"Returns the element stored, or throws an exception if none."
);
12
13
}
// namespace hilti::operator_
hilti::operator_
Definition:
operator-registry.h:15
Generated by
1.8.13