Home
last modified time | relevance | path

Searched refs:as_const (Results 1 – 6 of 6) sorted by relevance

/external/libmojo/third_party/jinja2/
Dnodes.py354 def as_const(self, eval_ctx=None): member in Expr
378 def as_const(self, eval_ctx=None): member in BinExpr
386 return f(self.left.as_const(eval_ctx), self.right.as_const(eval_ctx))
397 def as_const(self, eval_ctx=None): member in UnaryExpr
405 return f(self.node.as_const(eval_ctx))
438 def as_const(self, eval_ctx=None): member in Const
457 def as_const(self, eval_ctx=None): member in TemplateData
473 def as_const(self, eval_ctx=None): member in Tuple
475 return tuple(x.as_const(eval_ctx) for x in self.items)
488 def as_const(self, eval_ctx=None): member in List
[all …]
Doptimizer.py42 val = self.visit(node.test).as_const()
58 return nodes.Const.from_untrusted(node.as_const(),
Dcompiler.py1235 const = child.as_const(frame.eval_ctx)
1389 self.write(repr(node.as_const(frame.eval_ctx)))
1626 val = keyword.value.as_const(frame.eval_ctx)
/external/libcxx/test/std/utilities/utility/as_const/
Das_const.pass.cpp25 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const in test()
26 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const< T… in test()
27 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const<const T… in test()
28 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const<volatile T… in test()
29 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const<const volatile T… in test()
31 assert(std::as_const(t) == t); in test()
32 assert(std::as_const< T>(t) == t); in test()
33 assert(std::as_const<const T>(t) == t); in test()
34 assert(std::as_const<volatile T>(t) == t); in test()
35 assert(std::as_const<const volatile T>(t) == t); in test()
Das_const.fail.cpp21 std::as_const(S{}); in main()
/external/libcxx/include/
Dutility55 template <class T> constexpr add_const<T>_t& as_const(T& t) noexcept; // C++17
56 template <class T> void as_const(const T&&) = delete; // C++17
291 template <class _Tp> constexpr add_const_t<_Tp>& as_const(_Tp& __t) noexcept { return __t; }
292 template <class _Tp> void as_const(const _Tp&&) = delete;