Lines Matching refs:Stuff
297 ValueType[] opBinary(string op, Stuff)(Stuff stuff) if (op == "~") {
301 result ~= stuff[];
305 void opOpAssign(string op, Stuff)(Stuff stuff) if (op == "~") {
306 static if (is(typeof(insertBack(stuff)))) {
307 insertBack(stuff);
308 } else if (is(typeof(insertBack(stuff[])))) {
309 insertBack(stuff[]);
311 static assert(false, "Cannot append " ~ Stuff.stringof ~ " to " ~ typeof(this).stringof);
320 size_t insertBack(Stuff)(Stuff stuff)
321 if (std.traits.isImplicitlyConvertible!(Stuff, ValueType)){
322 push_back(stuff);
325 size_t insertBack(Stuff)(Stuff stuff)
326 if (std.range.isInputRange!Stuff &&
327 std.traits.isImplicitlyConvertible!(std.range.ElementType!Stuff, ValueType)) {
329 foreach(item; stuff) {
340 size_t insertBefore(Stuff)(Range r, Stuff stuff)
341 if (std.traits.isImplicitlyConvertible!(Stuff, ValueType)) {
343 insertAt(r._a, stuff);
347 size_t insertBefore(Stuff)(Range r, Stuff stuff)
348 if (std.range.isInputRange!Stuff && std.traits.isImplicitlyConvertible!(ElementType!Stuff, ValueType)) {
352 foreach(i, item; stuff) {
360 size_t insertAfter(Stuff)(Range r, Stuff stuff) {
364 auto result = insertBack(stuff);
370 size_t replace(Stuff)(Range r, Stuff stuff)
371 if (std.range.isInputRange!Stuff &&
372 std.traits.isImplicitlyConvertible!(ElementType!Stuff, ValueType)) {
376 for (; !stuff.empty; stuff.popFront()) {
379 return result + insertBack(stuff);
381 r.front = stuff.front;
385 // Remove remaining stuff in r
390 size_t replace(Stuff)(Range r, Stuff stuff)
391 if (std.traits.isImplicitlyConvertible!(Stuff, ValueType))
395 insertBefore(r, stuff);
399 r.front = stuff;