Skip to content

File make_list_tag.h

FileList > code_source > templat > include > TempLat > util > rangeiteration > make_list_tag.h

Go to the source code of this file

  • #include "TempLat/util/assignabletuple.h"

Namespaces

Type Name
namespace TempLat

Macros

Type Name
define MakeArray (i, beg, end, expr) /* multi line expression */
define MakeVector (i, beg, end, expr) make\_vector\_tag<beg, end + 1>([&](auto i) { return expr; })

Macro Definition Documentation

define MakeArray

#define MakeArray (
    i,
    beg,
    end,
    expr
) `/* multi line expression */`

@vocab-summary Like MakeVector, but produces a plain tuple rather than a vector expression. @vocab-signature MakeArray(i, beg, end, expr)


define MakeVector

#define MakeVector (
    i,
    beg,
    end,
    expr
) `make_vector_tag<beg, end + 1>([&](auto i) { return expr; })`

@vocab-summary Builds a vector expression by instantiating expr once for each index in \([beg, end]\), with i bound to a compile-time tag. @vocab-signature MakeVector(i, beg, end, expr) @vocab-example auto Bs = MakeVector(i, 1, 3, magneticField(As, i));



The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/util/rangeiteration/make_list_tag.h