mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 08:46:53 +08:00
18 lines
339 B
ChaiScript
18 lines
339 B
ChaiScript
load_module("stl_extra")
|
|
|
|
auto x = List()
|
|
// push_back newly constructed return value that's non-copyable
|
|
x.push_front(async(fun(){}))
|
|
|
|
// push_front newly constructed return value that's non-copyable
|
|
x.push_front(async(fun(){}))
|
|
|
|
|
|
|
|
// push_back newly constructed return value that's non-copyable
|
|
|
|
var v = []
|
|
v.push_back(async(fun(){}))
|
|
|
|
|