From bd3fe0cac583739bc0d7c4b5c8f301bb350abca0 Mon Sep 17 00:00:00 2001 From: Andy Belle-Isle Date: Fri, 30 Aug 2019 00:19:31 -0400 Subject: Renamed lib to deps so github will ignore it for language stats --- 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