[libcxx-commits] [libcxx] [libc++][math] Mathematical Special Functions: Hermite Polynomial (PR #89982)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Thu Apr 25 09:34:45 PDT 2024


================
@@ -0,0 +1,45 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBCPP_EXPERIMENTAL_MATH
+#define _LIBCPP_EXPERIMENTAL_MATH
+
+#include <experimental/__config>
+
+#if _LIBCPP_STD_VER >= 17
+
+#  include <experimental/__math/hermite.h>
+#  include <type_traits> // enable_if_t, is_integral_v
----------------
Zingam wrote:

I don't do reviews usually due to my incompetence but here are my 2 cents.

I believe we do includes unconditionally. We also include the granularized headers e.g. enable_if.h, instead of type_traits? Or is it required by the standard to include it?

https://github.com/llvm/llvm-project/pull/89982


More information about the libcxx-commits mailing list