From c467671ae8b6ec161c17e86f3383fd0625f755b8 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 19 Aug 2022 19:48:10 -0400 Subject: remove sol2 (will re-add as submodule) --- lib/sol2/docs/source/api/metatable_key.rst | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 lib/sol2/docs/source/api/metatable_key.rst (limited to 'lib/sol2/docs/source/api/metatable_key.rst') diff --git a/lib/sol2/docs/source/api/metatable_key.rst b/lib/sol2/docs/source/api/metatable_key.rst deleted file mode 100644 index 7eeff47..0000000 --- a/lib/sol2/docs/source/api/metatable_key.rst +++ /dev/null @@ -1,16 +0,0 @@ -metatable_key -============= -*a key for setting and getting an object's metatable* - - -.. code-block:: cpp - - struct metatable_key_t {}; - const metatable_key_t metatable_key; - -You can use this in conjunction with :doc:`sol::table` to set/get a metatable. Lua metatables are powerful ways to override default behavior of objects for various kinds of operators, among other things. Here is an entirely complete example, showing getting and working with a :doc:`usertype`'s metatable defined by sol: - -.. literalinclude:: ../../../examples/source/metatable_key_low_level.cpp - :caption: messing with metatables - :name: sol-metatable_key-eg - :linenos: -- cgit v1.2.3