// File: /workspace/github_cpp_makefile_star2_O2/stevedonovan[P]outstreams/testout.cpp
// Function: writing_iterator_range()
void writing_iterator_range() {
    outs("*iterator range")();
     // the convenience of initializer lists
    /// empty () is equivalent to ('\n')
    outs({10,20,30})();

    float arr[] {1.2,1.5,2.1};
    vector<int> vi {10,2,5,11,4};
    outs(range(arr,arr+3))();
    outs(range(vi))();

    // can specify the FORMAT and the SEPARATOR for a range
    string s = "\xFE\xEE\xAA";
    outs(range(s),"X",0)("and that's all")();


    outs("bork")(range(vi),"%#X",',')("heh")();

    // write out a quick little burst of json
    // The hex_u format (double-quoted) only applies to text fields
    // so can be safely passed for all times. q means single-quoted
    outs('{')({
        make_pair("hello",42),
        make_pair("dolly",99),
        make_pair("frodo",111)
    },quote_d,',')('}')();

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
leaq 0x4d0b(%rip), %rbx      # 0x7140
leaq 0x1c09(%rip), %rsi      # 0x4045
movq %rbx, %rdi
xorl %edx, %edx
callq 0x29e8
movq %rax, %rdi
callq 0x32ee
movabsq $0x140000000a, %rax     # imm = 0x140000000A
leaq 0x30(%rsp), %rcx
movq %rax, (%rcx)
movl $0x1e, 0x8(%rcx)
movq %rsp, %r14
movq %rcx, (%r14)
movq $0x3, 0x8(%r14)
pushq $0x20
popq %rbp
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
movl %ebp, %ecx
callq 0x2a18
movq %rax, %rdi
callq 0x32ee
movabsq $0x3fc000003f99999a, %rax # imm = 0x3FC000003F99999A
leaq 0x74(%rsp), %r15
movq %rax, -0xc(%r15)
movl $0x40066666, -0x4(%r15) # imm = 0x40066666
movups 0x1ce7(%rip), %xmm0     # 0x4198
movaps %xmm0, (%r14)
movl $0x4, 0x10(%r14)
leaq 0x50(%rsp), %rdi
movq %rsp, %r14
pushq $0x5
popq %rdx
leaq 0x30(%rsp), %rcx
movq %r14, %rsi
callq 0x2a3e
leaq 0x68(%rsp), %rax
movq %rax, (%r14)
movq %r15, 0x8(%r14)
movq %rsp, %rsi
movq %rbx, %rdi
xorl %edx, %edx
movl %ebp, %ecx
callq 0x2a74
movq %rax, %rdi
callq 0x32ee
movaps 0x50(%rsp), %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
leaq 0x4c36(%rip), %rdi      # 0x7140
pushq $0x20
popq %rcx
xorl %edx, %edx
callq 0x2acc
movq %rax, %rdi
callq 0x32ee
leaq 0x1b32(%rip), %rsi      # 0x4055
leaq 0x30(%rsp), %rdi
movq %rsp, %rdx
callq 0x2b22
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
addq %rax, %rcx
movq %rsp, %rsi
movq %rax, (%rsi)
movq %rcx, 0x8(%rsi)
leaq 0x4bf2(%rip), %rdi      # 0x7140
leaq 0x1b1a(%rip), %rdx      # 0x406f
xorl %ecx, %ecx
callq 0x2b5e
leaq 0x1af6(%rip), %rsi      # 0x4059
movq %rax, %rdi
xorl %edx, %edx
callq 0x29e8
movq %rax, %rdi
callq 0x32ee
leaq 0x4bc4(%rip), %rdi      # 0x7140
leaq 0x1ae5(%rip), %rsi      # 0x4068
xorl %edx, %edx
callq 0x29e8
movaps 0x50(%rsp), %xmm0
movq %rsp, %rbx
movaps %xmm0, (%rbx)
leaq 0x1ad1(%rip), %rdx      # 0x406d
pushq $0x2c
popq %rcx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2acc
leaq 0x1ac0(%rip), %rsi      # 0x4071
movq %rax, %rdi
xorl %edx, %edx
callq 0x29e8
movq %rax, %rdi
callq 0x32ee
leaq 0x4b76(%rip), %rdi      # 0x7140
pushq $0x7b
popq %rsi
xorl %edx, %edx
callq 0x29fa
leaq 0x1a9a(%rip), %rcx      # 0x4075
movq %rcx, (%rsp)
movl $0x2a, 0x8(%rsp)
leaq 0x1a8d(%rip), %rcx      # 0x407b
movq %rcx, 0x10(%rsp)
movl $0x63, 0x18(%rsp)
leaq 0x1a7f(%rip), %rcx      # 0x4081
movq %rcx, 0x20(%rsp)
movl $0x6f, 0x28(%rsp)
leaq 0x78(%rsp), %rsi
movq %rbx, (%rsi)
movq $0x3, 0x8(%rsi)
leaq 0x1a61(%rip), %rdx      # 0x4087
pushq $0x2c
popq %rcx
movq %rax, %rdi
callq 0x2bb4
pushq $0x7d
popq %rsi
movq %rax, %rdi
xorl %edx, %edx
callq 0x29fa
movq %rax, %rdi
callq 0x32ee
leaq 0x30(%rsp), %rdi
callq 0x20b0
leaq 0x50(%rsp), %rdi
callq 0x2d1e
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x266e
jmp 0x2677
jmp 0x266e
movq %rax, %rbx
jmp 0x2684
jmp 0x2677
jmp 0x2677
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x20b0
leaq 0x50(%rsp), %rdi
callq 0x2d1e
movq %rbx, %rdi
callq 0x21f0