Writing a C++ concept for a class that has a method which takes an std::array of arbitrary size
Context I’m writing numeric integrator as part of a library. As you might know, there are quite a few different types of numeric integrators (newton-cotes, gaussian quadrature etc.), and I’d like them to be interchangeable. Usually, one would do this by having and interface for an Integrator and then having some concrete types that implement […]
Writing a C++ concept for a class that has a method which takes an std::array of arbitrary size
Context I’m writing numeric integrator as part of a library. As you might know, there are quite a few different types of numeric integrators (newton-cotes, gaussian quadrature etc.), and I’d like them to be interchangeable. Usually, one would do this by having and interface for an Integrator and then having some concrete types that implement […]