Searched refs:as_const (Results 1 – 6 of 6) sorted by relevance
354 def as_const(self, eval_ctx=None): member in Expr378 def as_const(self, eval_ctx=None): member in BinExpr386 return f(self.left.as_const(eval_ctx), self.right.as_const(eval_ctx))397 def as_const(self, eval_ctx=None): member in UnaryExpr405 return f(self.node.as_const(eval_ctx))438 def as_const(self, eval_ctx=None): member in Const457 def as_const(self, eval_ctx=None): member in TemplateData473 def as_const(self, eval_ctx=None): member in Tuple475 return tuple(x.as_const(eval_ctx) for x in self.items)488 def as_const(self, eval_ctx=None): member in List[all …]
42 val = self.visit(node.test).as_const()58 return nodes.Const.from_untrusted(node.as_const(),
1235 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)
25 …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()
21 std::as_const(S{}); in main()
55 template <class T> constexpr add_const<T>_t& as_const(T& t) noexcept; // C++1756 template <class T> void as_const(const T&&) = delete; // C++17291 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;