A way to determine the number of elements in a structured binding

This page summarizes the projects mentioned and recommended in the original post on /r/cpp

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • magic_get

    std::tuple like methods for user defined types without any macro or boilerplate code

  • Libraries like magic_get expose the members of an aggregate class/struct to allow writing generic code for things like pretty printing and serialization without anything special done to the class itself. They often rely on structured bindings for the decomposition (*), but find the number of elements via SFINAE on aggregate initialization, as an aggregate type can be initialized only from as many objects as it has members. It would be nicer if you could SFINAE directly on the structured binding itself, as then the type could have user-defined constructors (which aggregates can't). Unfortunately, this is not possible since structured binding is a statement and not an expression. Unless you're using Clang, where the GNU statement expressions extension allows you to do SFINAE on them, as in here.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts