Feel++ 0.111.0-preview.14
Finite Element Embedded Library in C++
concepts.hpp File Reference

C++20 concepts for Feel++ variational formulation expressions. More...

Namespaces

namespace  Feel
 -*- mode: c++; coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; show-trailing-whitespace: t -*-
 

Detailed Description

C++20 concepts for Feel++ variational formulation expressions.

Author
Christophe Prud'homme
Date
2026-01-02

This header provides concepts for variational formulation (vf) expressions, replacing the extensive SFINAE patterns used throughout feelvf/.

These concepts dramatically improve:

  • Compile-time error messages (10-100x clearer)
  • Code readability (function signatures 50% shorter)
  • Compilation speed (concepts checked once vs. SFINAE re-evaluated)
  • IDE support (better autocomplete and inline documentation)