37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
return PrependToTuple( lhs, rhs );
} ),
// Overload: anything, anything
ForType< Value >(
[]( auto&& c, auto&& lhs, auto&& rhs ) -> Value
{
return AppendToTuple( AppendToTuple( EmptyTuple(), lhs ), rhs );
} ),
// We want to be able to put references in tuples without them getting
// automatically dereferenced, so we have specific overloads that treat
// them explicitely.
ForType< RefOfAnyType >(
[]( auto&& c, auto&& lhs, auto&& rhs ) -> Value
{
return AppendToTuple( AppendToTuple( EmptyTuple(), lhs ), rhs );
} ),
ForTypes< Value, RefOfAnyType >(
[]( auto&& c, auto&& lhs, auto&& rhs ) -> Value
{
return AppendToTuple( AppendToTuple( EmptyTuple(), lhs ), rhs );
} ),
ForTypes< RefOfAnyType, Value >(
[]( auto&& c, auto&& lhs, auto&& rhs ) -> Value
{
return AppendToTuple( AppendToTuple( EmptyTuple(), lhs ), rhs );
} ),
ForTypes< CustomPattern< Value, TupleOpenPattern >, RefOfAnyType >(
[]( auto&& c, auto&& lhs, auto&& rhs ) -> Value
{
return AppendToTuple( lhs, rhs );
} ),
|
|
|
|
|
|
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
return PrependToTuple( lhs, rhs );
} ),
// Overload: anything, anything
ForType< Value >(
[]( auto&& c, auto&& lhs, auto&& rhs ) -> Value
{
return AppendToTuple( AppendToTuple( EmptyOpenTuple(), lhs ), rhs );
} ),
// We want to be able to put references in tuples without them getting
// automatically dereferenced, so we have specific overloads that treat
// them explicitely.
ForType< RefOfAnyType >(
[]( auto&& c, auto&& lhs, auto&& rhs ) -> Value
{
return AppendToTuple( AppendToTuple( EmptyOpenTuple(), lhs ), rhs );
} ),
ForTypes< Value, RefOfAnyType >(
[]( auto&& c, auto&& lhs, auto&& rhs ) -> Value
{
return AppendToTuple( AppendToTuple( EmptyOpenTuple(), lhs ), rhs );
} ),
ForTypes< RefOfAnyType, Value >(
[]( auto&& c, auto&& lhs, auto&& rhs ) -> Value
{
return AppendToTuple( AppendToTuple( EmptyOpenTuple(), lhs ), rhs );
} ),
ForTypes< CustomPattern< Value, TupleOpenPattern >, RefOfAnyType >(
[]( auto&& c, auto&& lhs, auto&& rhs ) -> Value
{
return AppendToTuple( lhs, rhs );
} ),
|