LLZK 0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
Concepts.h
Go to the documentation of this file.
1//===-- Concepts.h ----------------------------------------------*- C++ -*-===//
2//
3// Part of the LLZK Project, under the Apache License v2.0.
4// See LICENSE.txt for license information.
5// Copyright 2025 Veridise Inc.
6// SPDX-License-Identifier: Apache-2.0
7//
8//===----------------------------------------------------------------------===//
9
10#pragma once
11
12#include <concepts>
13
15template <typename OpT, template <typename> class Trait>
16concept HasTrait = OpT::template hasTrait<Trait>();
17
19template <typename OpT, typename Iface>
Restricts a template parameter to Op classes that implement the given OpInterface.
Definition Concepts.h:20
Restricts a template parameter to Op classes that have the given Trait.
Definition Concepts.h:16